RandomFields (version 3.1.36)

RMpolynome: Creating poylonmial models

Description

Polynomial, mainly used in trend models, can be created easily with this function.

Usage

RMpolynome(degree, dim, value=NA, varnames = c("x", "y", "z", "T"), proj=1:4)

Arguments

degree
degree of the polynome
dim
number of variables in the polynome
value
values of the coefficients. See Details
varnames
the names of the variables
proj
the projection to certain dimensions.

Value

RMpolynome returns an object of class RMmodel.

Details

If the length of value is smaller than the number of mononomes, the remaining terms are filled with NAs. If the length is larger, the vector is cut.

See Also

RMtrend, RFfit.

Examples

Run this code
 ## For examples see the help page of 'RFformula' ##

RMpolynome(1, 1)
RMpolynome(1, 2)
RMpolynome(2, 1)
RMpolynome(2, 2)
RMpolynome(3, 3)


Run the code above in your browser using DataCamp Workspace