Description Usage Format Details Examples
Simulated date matrix with response variable distributed with 'powered exponential' covariance matrix, with φ=25, τ=1, κ=1, σ=1.
1 |
A sample dataset with 1000 rows and 4 columns. Each row represents one observation. The first two column of the matrix consists of x1 and x2, where x1 and x2 provide the 2D location for each obsevation. The third column of the matrix gives the y value, which is the response value. Covariate is included in Column 4. This is the default form for the variable Data in function RSA.
####code used to generate gdata####
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)
l=gData$coords
y=gData$data
x=rnorm(DataNum)
y2=y+.5+x
gdata=cbind(l,y2,x)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.