rdwp: Simulate parameters from a fitted dwp model

View source: R/dwp_functions.R

rdwpR Documentation

Simulate parameters from a fitted dwp model

Description

Simulate parameters from a dwpm model object

Usage

rdwp(n, model)

Arguments

n

the number of simulation draws

model

A dwpm object (which is returned from dwpm())

Details

If the model type = data, then the number of simulated columns must be either >=n (in which case the first n colunms are taken as the simulated DWP) or 1 (in which case, DWP is assumed constant).

Value

array of n simulated dwp values for each unit. Dimensions = c(n, number of units).


ddalthorp/GenEst documentation built on June 4, 2023, 1 a.m.