Learn R Programming

glmmBUGS (version 2.4.2)

getStartingValues: Extract starting values for an MCMC chain from glmmPQL results

Description

Parameter estimates and random effect predictions are extracted from a glmmPQL model fit, and formatted to correspond to the levels in the supplied ragged array.

Usage

getStartingValues(pql, ragged,prefix=NULL, reparam=NULL)

Arguments

pql

output from the glmmPQLstrings function

ragged

a ragged array, from winBugsRaggedArray

prefix

string to append to object names

reparam

vector of random effect names, subtract covariates at this level from the intercept.

Value

A list of vectors, one for each set of parameters or random effects, and a list of estimated standard deviations.

Details

This function produces a list suitable for passing to startingFunction to generate random starting values for use with bugs. If ragged has a spatial component, starting values for a spatial random effect will also be computed.

See Also

glmmPQLstrings, startingFunction, bugs, glmmBUGS