simulate.bmixlm: Simulate Responses from a 'bmixlm' Object

Description Usage Arguments Details Value

Description

New observations are simulated from the posterior predictive distribution.

Usage

1
2
## S3 method for class 'bmixlm'
simulate(object, nsim = 1, seed = NULL, ...)

Arguments

object

An object of class bmixlm.

nsim

Number of response vectors to simulate.

seed

An object specifying if and how the random number generator should be initialized.

...

Additional arguments to be passed to update.

Details

If nsim is not NULL, update is called to generate nsim new samples from the posterior, and new observations are generated from these. Otherwise new observations are generated from the samples contained in the fitted object.

Value

A dataframe of simulated responses.


SWotherspoon/bmixlm documentation built on May 9, 2019, 12:07 p.m.