Skip to contents

Simulate data from a surveyIdx model (experimental and subject to change)

Usage

get_surveyidx_sim(model, d, sampleFit = FALSE, condSim = NULL)

Arguments

model

object of class 'surveyIdx'

d

A dataset (DATRASraw object)

sampleFit

Use a random sample from the gaussian approximation to distribution of the estimated parameter vector. Default: FALSE.

condSim

optional results of previous call to this function. Use this if you want to generate many datasets (much faster, since mean predictions are re-used).

Value

list with 1) simulated observations with noise 2) mean (no noise) 3) zero probability.

Details

Previously named simulate surveyIdx.simulate.