simulateModel {demest} | R Documentation

## Draw parameters and data from a statistical model

### Description

WARNING - THIS FUNCTION IS STILL UNDER DEVELOPMENT

### Usage

    simulateModel(
      model,
      y = NULL,
      exposure = NULL,
      weights = NULL,
      filename = NULL,
      nDraw = 10,
      verbose = TRUE,
      useC = TRUE
    )

### Arguments

`model` | An object of class `SpecModel`, specifying the model to be fit.
`y` | A `demographic array` holding the outcome data.
`exposure` | A `Counts` object specifying exposure or sample size.
`weights` | A `Counts` object containing weights.
`filename` | The name of a file where output is collected.
`nDraw` | The number of random draws to make from the model.
`verbose` | Logical. If `TRUE` (the default) a message is printed at the end of the calculations.
`useC` | Logical. If `TRUE` (the default), the calculations are done in C. Setting `useC` to `FALSE` may be useful for debugging.

[Package demest version 0.0.0.3.1 Index]