gdata: Dataset for SAMCrsa

Description Usage Format Details

Description

Simulated data list with response variable distributed with 'powered exponential' covariance matrix, with φ=25, τ=1, κ=1, σ=1.

Usage

1

Format

A sample dataset with 1000 observations. It's save as an R's native list, and see the table for description of variables in the gdata list,

VARIABLE SIZE DESCRIPTION
coords (1000\times 2) matrix 2D location for each observation
y length-1000 vector response value
X length-1000 vcetor covariate

This is the default example data for SAMCrsa.

Details

Below is the code used to generate gdata:

1
2
3
4
5
6
require("geoR")
require("RandomFields")
DataNum=1000
gData=grf(DataNum,grid="irreg",DataNum,DataNum,xlims=c(0,100),ylims=c(0,100),nsim=1,mean=0,
          cov.mode="powered.exponential",cov.par=c(1,25),nugget=1,kappa=1)
gdata = list(y=gData$data+.5+rnorm(DataNum), X=rnorm(DataNum), coords=gData$coords)

SAMCpack documentation built on May 2, 2019, 7:31 a.m.