sim.tdlmm {dlmtree}R Documentation

Creates simulated data for TDLM & TDLMM

Description

Method for creating simulated data for TDLM & TDLMM

Usage

sim.tdlmm(
  sim = "A",
  n = 5000,
  error = 10,
  mean.p = 0.5,
  prop.active = 0.05,
  expList = NULL,
  r = 1
)

Arguments

sim

character (A - F) specifying simulation scenario

n

sample size for simulation

error

positive scalar specifying error variance for Gaussian response

mean.p

scalar between zero and one specifying mean probability for simulation scenario A

prop.active

proportion of active exposures for simulation scenario C

expList

named list of exposure data

r

dispersion parameter of negative binomial distribution

Details

sim.tdlmm

Simulation scenarios:

Value

Simulated data and true parameters

Examples

sim.tdlmm(sim = "A", mean.p = 0.5, n = 1000)


[Package dlmtree version 1.0.0 Index]