stSimulate: Simulate responses from the spatio-temporal teleconnection...

Description Usage Arguments Examples

View source: R/stSimulate.R

Description

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.

Usage

1
stSimulate(dat.train, dat.test, coords.knots, params, miles = T)

Arguments

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

beta

vector with fixed effect coefficients

cov.s

list(smoothness=double, range=double, variance=double, nugget=double)

cov.r

list(smoothness=double, range=double, variance=double, nugget=double)

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.

Examples

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)

telefit documentation built on Feb. 4, 2020, 9:08 a.m.

Related to stSimulate in telefit...