Learn R Programming

RandomFields (version 3.1.12)

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

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)

FinalizeExample()

Run the code above in your browser using DataLab