SimGeospat | R Documentation |
Simulated data from a geospatial study with continuous outcomes
#Data were generated with the following code:
n <- 600
SimGeospat <- data.frame(x = runif(n,-1,1), y = runif(n,-1,1))
sim_model <- Model$new(
formula = ~ (1|fexp(x,y)),
data = SimGeospat,
covariance = c(0.25,0.8),
mean = c(0),
family = gaussian()
)
SimGeospat$y <- sim_model$sim_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.