sim.hdlmm {dlmtree}R Documentation

Creates simulated data for HDLM & HDLMM

Description

Method for creating simulated data for HDLM & HDLMM

Usage

sim.hdlmm(
  sim = "A",
  n = 1000,
  error = 1,
  effect.size = 1,
  exposure.data = NULL
)

Arguments

sim

character (A - E) specifying simulation scenario

n

sample size

error

positive scalar specifying error variance for Gaussian response

effect.size

the effect size of the window of susceptibility

exposure.data

exposure data. A matrix of exposure data for simulation A, B, C and a named list of exposure data for simulation D, E

Details

sim.hdlmm

Simulation scenarios:

Value

Simulated data and true parameters

Examples

sim.hdlmm(sim = "A", n = 1000)


[Package dlmtree version 1.0.0 Index]