vs.sim: Data simulation under the variable selection model

Description Usage Arguments Examples

View source: R/VSdatasim.R

Description

Data simulation under the variable selection model

Usage

1
2
3
4
5
6
7
8
9
vs.sim(
  lam = 0.001533,
  mu = 0.011666,
  tausq = 0.158333,
  days,
  x0 = 0.0066,
  gen = 10,
  Dmat = matrix(50, ncol = nreps, nrow = ndays)
)

Arguments

lam

lambda parameter in the model

mu

mu parameter in the model

tausq

tau square parameter

days

number of days

x0

day zero

gen

number of generations per day

Dmat

starting point

Examples

1
2
3
4
5
ndays <-22
days.vec <- 0:(ndays-1)
nreps <- 3
D <- matrix(50, ncol=nreps, nrow=ndays)
varselsim <- vs.sim(lam=0.001533, mu=0.011666, tausq=0.158333, days=days.vec, x0 = 0.0066, gen=10, Dmat=D)

javirudolph/StabilityToolkit documentation built on Jan. 3, 2021, 11:29 p.m.