Learn R Programming

varycoef (version 0.2.9)

fullSVC_reggrid: Sample Function for SVCs

Description

Samples SVC on a regular grid. The SVC have all mean 0.

Usage

fullSVC_reggrid(m, p, cov_pars, nugget, seed = 123)

Arguments

m

integer. square root number of observations, in total the function will sample \(m^2\) locations on a regular grid.

p

integer. number of SVC

cov_pars

data.frame including the covariance parameters of SVCs, using an exponential covariance function. The columns must have the names "var" and "range".

nugget

scalar. variance of the nugget / error term.

seed

integer. seed for sampling

Value

object of class SpatialPointsDataFrame (see SpatialPointsDataFrame-class) of the sampled SVC including the nugget.