simFromMesh: Function to simulate data from a mesh given certain...

Description Usage Arguments

View source: R/validation.R

Description

This simulates spatial data from a mesh from a specified number of precision matrices. The number of precision matrices is specified by the length of the hyperparameter vectors, which must be equal.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
simFromMesh(
  mesh,
  size = 5000,
  sp_type = "barrier",
  hyperp1,
  hyperp2,
  barrier.triangles = NULL,
  barrier.polygon = NULL,
  seed = NULL
)

Arguments

mesh

The mesh to simulate from

size

the number of locations to sample

sp_type

whether spde or barrier type

hyperp1

vector of kappas for spde, vector of ranges for barrier

hyperp2

vector of taus for spde, vector of sigma_us for barrier

barrier.triangles

the triangles defining the barrier for the barrier model

barrier.polygon

the barrier polygon to avoid sampling on the barrier

seed

The seed for the random number generation


jgbabyn/barrierALK documentation built on Dec. 20, 2021, 11:09 p.m.