RMpolynome: Creating polynomial models

Description Usage Arguments Details Value See Also Examples

View source: R/RMmodelsSpecial.R

Description

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

Usage

1
2
RMpolynome(degree, dim, value=NA, coordnames = 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.

coordnames

the names of the variables

proj

the projection to certain dimensions

Details

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

Value

RMpolynome returns an object of class RMmodel.

See Also

RMtrend, RFfit.

Examples

1
2
3
4
5
6
7
 ## For examples see the help page of 'RFformula' ##

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

RandomFields documentation built on Jan. 19, 2022, 1:06 a.m.