rhglmm.default {hglmm} | R Documentation |
Takes an object specifying the structure of the data frame in which the data are to be stored, and the parameters of the model and simulates the data.
## Default S3 method: rhglmm(object,formula,cells, miss.frac = 0, contr = NULL, ...)
object |
An object with components |
formula |
The formula specifying the generalized linear model
to be simulated from. Note that this formula should include
|
cells |
A character vector specifying the names of the factors which determine the “cells” of the model. |
miss.frac |
Data will be randomly set equal
to |
contr |
A character string, one of “treatment”, “helmert”
or “sum”, specifying what contrasts to use in constructing the
design matrix. Note that the meaning of the coefficient vector
|
... |
Not used. |
Although the name refers to “generalized linear models”, currently only log linear Poisson models are provided for. More flexibility may be added at a future date.
A data frame with the same columns as those of data
and also the simulated response whose name is determined
from formula
.
Rolf Turner r.turner@auckland.ac.nz
See the help for hglmm()
for references.
fitted.hglmm()
rhglmm()
rhglmm.hglmm()
bcov()
# See the help for rhglmm() for an example.