| RFlinearpart {RandomFields} | R Documentation |
RMmodelRFlinearpart returns the linear part of a model
RFlinearpart(model, x, y = NULL, z = NULL, T = NULL, grid,
data, distances, dim, set=0, ...)
model |
object of class |
x |
vector or (n x
\code{dim})-matrix, where n is the number of points at
which the covariance function is to be evaluated;
in particular,
if the model is isotropic or |
y |
second vector or matrix for non-stationary covariance functions |
z |
z-component of point if xyzT-specification of points is used |
T |
T-component of point if xyzT-specification of points is used |
grid |
boolean; whether xyzT specify a grid |
data |
vector or matrix of values measured at If an |
distances |
vector;
the lower triangular part of the distance matrix column-wise;
equivalently the upper triangular part of the distance matrix row-wise;
either |
dim |
dimension of the coordinate space in which the model is
applied; only necesary for given |
set |
integer. See section Value for details. |
... |
for advanced
further options and control arguments for the simulation
that are passed to and processed by |
RFlinearpart returns a list
of three components, Y, X, vdim returning
the deterministic trend, the design matrix, and the multivariability,
respectively.
If set is positive, Y and X contain
the values for the set-th set of coordinates.
Else, Y and X are both lists containing
the values for all the sets.
In the linear part of the model specification the parameters
that are NA must be the first model part. I.e.
NA * sin(R.p(new="isotropic")) + NA + R.p(new="isotropic")
is OK, but not
sin(R.p(new="isotropic")) * NA + NA + R.p(new="isotropic")
Martin Schlather, schlather@math.uni-mannheim.de http://ms.math.uni-mannheim.de/de/publications/software
Bayesian,
RMmodel,
RFsimulate,
RFlikelihood.
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set ## RFoptions(seed=NA) to make them all random again x <- seq(0, pi, len=10) trend <- 2 * sin(R.p(new="isotropic")) + 3 model <- RMexp(var=2, scale=1) + trend print(RFlinearpart(model, x=x)) ## only a deterministic part trend <- NA * sin(R.p(new="isotropic")) + NA + R.p(new="isotropic") / pi model <- RMexp(var=NA, scale=NA) + trend print(RFlinearpart(model, x=x))