pIMCE | R Documentation |
pIMCE
calculates the population individual-level marginal component effects from a BART-estimated conjoint model, using marginal attribute distributions specified by the researcher.
pIMCE(
model,
covar_data,
attribs,
l,
l_1,
l_0,
marginals,
method = "bayes",
alpha = 0.05,
cores = 1,
skip_checks = FALSE,
verbose = TRUE
)
model |
A model object, the result of running |
covar_data |
A data.frame of covariate information to predict pIMCEs over |
attribs |
Vector of attribute names |
l |
Name of the attribute of interest |
l_1 |
Attribute-level of interest for attribute l |
l_0 |
Reference level for attribute l |
marginals |
A named list where every element is a named vector of marginal probabilities for each corresponding attribute-level. For example, |
method |
Character string, setting the variance estimation method to use. When method is "parametric", a typical combined variance estimate is employed; when |
alpha |
Number between 0 and 1 – the significance level used to compute confidence/posterior intervals. When |
cores |
Number of CPU cores used during prediction phase |
skip_checks |
Boolean, indicating whether to check the structure of the data (default = |
verbose |
Boolean, indicating whether to print progress (default = TRUE) |
This function calculates the population-weighted IMCE, which takes into account the population distribution of profiles. Rather than average over the multiple OMCE estimates, this function generates estimated treatment effects for all possible potential outcomes along all attributes except the attribute of interest, and then marginalizes these over the supplied marginal distributions. Uncertainty estimates are recovered using credible intervals.
pIMCE
returns a data.frame of population-weighted estimates, credible interval bounds, and the covariate information supplied
cjbart()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.