simCRL: Simulate CRL data with the specified parameters

Description Usage Arguments Value

View source: R/validation.R

Description

Simulate CRL ratio data with the specified parameters with the option to add spatial data based off of a mesh using simFromMesh.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
simCRL(
  fParamMatrix,
  intercept = TRUE,
  size = 1000,
  hyperp1 = NULL,
  hyperp2 = NULL,
  mesh = NULL,
  barrier.triangles = NULL,
  barrier.polygon = NULL,
  sizeL = size,
  seed = NULL,
  distro = rnorm
)

Arguments

fParamMatrix

the matrix of fixed parameters, rows are classes-1,columns are number of parameters, first column is intercept if allowed

intercept

use an intercept term?

size

number of samples to simulate

hyperp1

hyperp1 for the spatial simulation

hyperp2

hyperp2 for the spatial simulation

mesh

mesh for the spatial simulation

barrier.triangles

the triangles defining the barrier for the barrier model

barrier.polygon

the barrier polygon to avoid sampling on the barrier

sizeL

number of spatial locations to sim, if not given, then unique location for each size

seed

the seed to use

distro

the distribution to use for the parameters

Value

A data frame containing the simulated response, any sampled coordinates from the mesh


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