restoreParams {glmmBUGS} | R Documentation |
Undoes the parametrisation used in writeBugsModel
, and gives the original names to random effect levels.
restoreParams(bugsResult, ragged = NULL)
bugsResult |
Output from bugs , using a ragged array generated by winBugsRaggedArray and a model generated by writeBugsModel |
ragged |
The ragged array used to call bugs |
A list where each element is a matrix or an array.
The first dimension is the number of realisations,
the second the number of chains, and for vector-valued parameters and
random effects, the third dimension is the length of the parameter.
If the model contains a spatial component,
the result will have list entries the following:
ReffectSpatial |
The spatial random effect for each region |
Reffect |
The log relative risk, which is the sum of the spatial and non-spatial random effect |
FittedRateeffect |
The incidence rate for each region (if the offset in the model is total population), or the incident rate relative to the population average (if the offset is an expected count). Note that these rates are on the natural scale rather than the log scale. |
Patrick Brown patrick.brown@utoronto.ca