Description Usage Arguments Examples
This function simulates spatio-temporal data. The intention is that data Y and latent parameters alpha will be generated using provided covariates X and Z; spatial domains coords.s, coords.r, and coords.knots; and model parameters.
1 | stSimulate(dat.train, dat.test, coords.knots, params, miles = T)
|
dat.train |
stData object with training data to simulate new Y values for |
dat.test |
stData object with test data to simulate new Y values for |
coords.knots |
matrix with coordinates of knots for remote covariates (lon, lat) |
params |
A list containing model parameters for use in simulation
|
miles |
TRUE to compute distances for evaluating covariance functions in miles. This is important since the interpretations of the cov.r and cov.s parameters depend on the units with which distance is measured. |
1 2 3 4 5 6 7 8 | set.seed(2018)
data("coprecip")
data("coprecip.fit")
coprecip.predict = stPredict(stFit = coprecip.fit, stData = coprecip,
stDataNew = coprecip, burn = 90,
returnFullAlphas = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.