View source: R/generate_matern_dataset.R
generates matern cluster process data
1 2 3 4 5 6 | generate_matern_dataset(seed = NULL, num_subj = 5L, num_dists = 2L,
Lambda_xy = function(x, y) { 8 - x^2 - y^2 }, scale = 1,
mu = 1, max_dist = 5L, bef_xlim = c(-1, 1), bef_ylim = c(-1, 1),
subj_xlim = c(-1, 1), subj_ylim = c(-1, 1), alpha = 25,
delta = -2.3, beta = 0.1, theta = 0.5, sigma = 1,
K = function(x) exp(-x))
|
seed |
an integer for set.seed() |
num_subj |
number of subjects position processes to simulate |
num_dists |
number of bef processes to simulate |
scale |
matern process kappa parameter - passed to rMatClust |
mu |
Mean number of points per cluster - passed to rMatClust |
max_dist |
upper bound on distances to include |
bef_xlim |
x coordinate bounds from which to simulate befs |
bef_ylim |
y coordinate bounds from which to simulate bef positions |
subj_xlim |
x coordinate bounds from which to simulate subject positions |
subj_ylim |
y coordinate bounds from which to simulate subject positions |
alpha |
true intercept value |
delta |
confounder effect |
beta |
true bef effect |
theta |
true spatial scale |
K |
exposure function |
inten |
intensity function for nhpp as a function of spatial coords (x,y) - passed to rMatClust |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.