response              package:depmixS4              R Documentation

_M_e_t_h_o_d_s _f_o_r _c_r_e_a_t_i_n_g _d_e_p_m_i_x _r_e_s_p_o_n_s_e _m_o_d_e_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     Create 'response' objects for 'depmix' models using formulae and
     family objects.

_U_s_a_g_e:

             
             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, ...)
             
             ## S4 method for signature 'response':
             getdf(object)

_A_r_g_u_m_e_n_t_s:

 formula: A model 'formula'.

    data: An optional data.frame to interpret the variables from the 
          formula argument in.

  family: A family object; see the 'responses' help page  a list of
          currently available options.

  pstart: Starting values for the coefficients and other parameters, ie
          the standard deviation for the gaussian() family.

   fixed: Logical vector indicating which paramters are to be fixed.

    prob: Logical indicating whether the starting values for
          multinomial() family models are probabilities or logistic
          parameters (see details).

 nstates: The number of states of the model.

  object: Object of class response.

     ...: Not used currently.

_D_e_t_a_i_l_s:

     Both methods use the familiar formula interface from '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.

_V_a_l_u_e:

     '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.

_A_u_t_h_o_r(_s):

     Ingmar Visser & Maarten Speekenbrink

