Description Usage Arguments Details See Also Examples
Computes mu(B,z) for the Gaussian model.
1 2 3 | mubz.normal(b,z,params=NULL,spatial=NULL,
cor.matrix=spatial.cor.matrix(c(params,1),spatial),
details=FALSE)
|
b |
a vector of TRUE or FALSE, of length |
z |
a vector of positive constants |
params |
a vector of length 2 that must be informed if |
spatial |
the correlation model given as a list:
|
cor.matrix |
a correlation matrix if |
details |
get more details in the return value? |
mubz.normal
uses mnormpow
to compute the value of
mu(B,z). If the dimension of z is too large (cannot exceed
20), the computation may fail.
1 2 3 4 5 | # In this example, we compute mu(B,z) for Whittle Matern spatial model
# from 10 sites uniformly distributed on the square [0,2]x[0,2]
mubz.normal(b=c(TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,TRUE),
z=rep(1,10),params=c(1,2),
spatial=list(sites=matrix(2*runif(20),ncol=2),family=spatialWhittleMatern))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.