Learn R Programming

hesim (version 0.5.5)

params_mlogit_list: Parameters of a list of multinomial logit models

Description

Create a list containing the parameters of multiple fitted multinomial logit models. Can be used to parameterize state transitions in a discrete time transition model by passing to the params field of a CohortDtstmTrans object.

Usage

params_mlogit_list(...)

Value

An object of class params_mlogit_list, which is a list containing params_mlogit objects.

Arguments

...

Objects of class params_mlogit, which can be named.

See Also

summary.params_mlogit_list(), params_mlogit(), CohortDtstmTrans

Examples

Run this code
# Consider a sick-sicker model

params <- params_mlogit_list(
  ## Transitions from sick state (sick -> sicker, sick -> death)
  sick = params_mlogit(
    coefs = list(
      sicker = data.frame(
        intercept = c(-0.33, -.2),
        treat = c(log(.75), log(.8))
      ),
      death = data.frame(
        intercept = c(-1, -1.2),
        treat = c(log(.6), log(.65))
      )
    )
  ),
  
  ## Transitions from sicker state (sicker -> death)
  sicker = params_mlogit(
    coefs = list(
      death = data.frame(
        intercept = c(-1.5, -1.4),
        treat = c(log(.5), log(.55))
      )
    )
  )
)
summary(params)
params

Run the code above in your browser using DataLab