fit.mmre: Function to fit two state Markov model with individual level...

View source: R/fit_mmre.r

fit.mmreR Documentation

Function to fit two state Markov model with individual level random effects.

Description

Function to fit two state Markov model with individual level random effects.

Usage

fit.mmre(
  data = NULL,
  parameters,
  cov.names = "none",
  decay = FALSE,
  truncation = NULL,
  optim = TRUE,
  ...
)

Arguments

data

a mmre object

parameters

a named list of starting values for the model, assumed model is chosen based on the contents of this list (i.e., to fit a correlated random effect model parameters must contain the elements u, log_sig_u and cov_par)

cov.names

a charater string or vector of covariate names (elements in data) (only for multiple individuals)

decay

logical decay formulation to be used or not

optim

logical; if TURE optim() else optimisation done using nlminb()

...

other arguments for nlminb() or optim()


cmjt/mmre documentation built on Oct. 2, 2023, 11:24 p.m.