strv_simulate: Simulate from a model object.

strv_simulateR Documentation

Simulate from a model object.

Description

Simulate from a model object.

Usage

strv_simulate(object, ...)

## S4 method for signature 'starve'
strv_simulate(object, conditional = FALSE, ...)

Arguments

object

A model object to simulate from.

...

Extra options

conditional

Logical. If false (default), new random effects and new observations are simulated. If true, new observations are simulated conditional on the random effect values in the supplied model.

Value

A single copy of object with a simulated dataset replacing the original data

Methods (by class)

  • strv_simulate(starve): Simulate a new dataset from the model, with the option to simulate a new set of random effects as well. The parameter values used in the simulations are those set in parameters(model). Returns a starve object with simulated random effects (if conditional=FALSE)and simulated data.


lawlerem/staRVe documentation built on Oct. 9, 2024, 4:48 a.m.