cjoint_plot {FactorHet} | R Documentation |
Plot a FactorHet object
Description
Plots the coefficients \beta_k
from a fitted FactorHet object for the
main effects only. Use AME
to calculate average marginal effects. This
provides a fast method to examine the impact of a factor.
Usage
cjoint_plot(object, baseline = NA, plot = TRUE)
Arguments
object |
An object from |
baseline |
A specification of baseline levels of each factor. The
default is |
plot |
A logical value as to whether the function should print the plot
immediately or quietly provide an object containing the plot and data. The
default is |
Value
Returns a named list with the underlying data ("data"
) and the
plot ("plot"
).
See Also
Examples
# Fit with one group and limited regularization for example only
# Ignore conjoint structure for simplicity
fit <- FactorHet(Chosen_Immigrant ~ Plans + Ed + Country,
design = immigration, lambda = 1e-2,
K = 1, group = ~ CaseID, task = ~ contest_no, choice_order = ~ choice_id)
# Plot the raw coefficients
cjoint_plot(fit)
[Package FactorHet version 1.0.0 Index]