transInit
objects for depmix
models using
formulae and family objects.transInit(formula, nstates, data=NULL, family=multinomial(),
pstart=NULL, fixed=NULL, prob=TRUE, ...)
## S3 method for class 'transInit':
getdf(object)
formula
.transInit
.transInit
return objects of class transInit
; this class
extends the response-class
.transInit
model provides functionality for the multinomial
probabilities of the transitions between states, as well as for the
prior or initial probabilities. These probabilities may depend on
(time-varying) covariates. The model can be used with link functions
mlogit
and identity
; the latter is the default when no
covariates are. With the mlogit
link function, the transition
probabilities are modeled as baseline logistic multinomials (see
Agresti, 2002, p. 272 ff.).
Start values for the parameters may be provided using the pstart
argument; these can be provided as probabilities, the default option,
or as baseline logistic parameters, use the prob
argument to
specify the chosen option. The default baseline category is set to 1,
which can be modified through calling, say, family=multinomial(base=2).
Note that the transInit model extends the response-class
,
but that it actually lacks a reponse, i.e. the y-slot is empty, at the
time of construction, as the transitions are not observed.
getdf
returns the number of free parameters of a transInit model.