View source: R/params_mlogit_list.R
params_mlogit_list | R Documentation |
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.
params_mlogit_list(...)
... |
Objects of class |
An object of class params_mlogit_list
, which is a list containing
params_mlogit
objects.
summary.params_mlogit_list()
, params_mlogit()
, CohortDtstmTrans
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.