| get_subject_pars | R Documentation |
Convenience function to extract subject-specific demand parameters from
a fitted hurdle demand model. Equivalent to accessing object$subject_pars.
get_subject_pars(object)
object |
A fitted |
Data frame with subject-specific parameters including:
Subject identifier
Random effect for Part I (zeros)
Random effect for Part II (Q0)
Random effect for alpha (3-RE model only)
Subject-specific intensity (consumption at price 0)
Subject-specific elasticity
Price where P(quit) = 0.5
Price at maximum expenditure
Maximum expenditure
fit_demand_hurdle
data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
pars <- get_subject_pars(fit)
head(pars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.