response
objects for depmix
models using
formulae and family objects.GLMresponse(formula, data=NULL, family=gaussian(), pstart=NULL,
fixed=NULL, prob=TRUE, ...)
transInit(formula, nstates, data=NULL, family=multinomial(),
pstart=NULL, fixed=NULL, prob=TRUE, ...)
## S3 method for class 'response':
getdf(object)
formula
.responses
help page
a list of currently available options.GLMresponse
and transInit
return objects of class
GLMresponse
and transInit
respectively; both classes
extend the response-class
.
getdf
returns the number of free parameters of a
response
model.glm
to specify how responses (or transition or prior parameters) depend on
covariates/predictors.
The GLMresponse
model is an interface to the glm
functions of which the functionality is leant: predict, fit and
density functions.
The transInit
response model provides functionality for
multinomial responses that are currently fit using nnet (this may
change in the future but this should not affect the interface of this
function). Note that the transInit model actually lacks a reponse, ie
the y-slot is empty, at the time of construction, as the transitions
are not observed.