Learn R Programming

cjbart (version 0.3.2)

plot.cjbart: Plot Marginal Component Effects of a cjbart Object

Description

Plots observation-level or individual-level marginal component effects (OMCE and IMCE respectively). By default, all attribute-levels in the model are plotted.

Usage

# S3 method for cjbart
plot(x, covar = NULL, plot_levels = NULL, se = TRUE, ...)

Value

Plot of marginal component effects.

Arguments

x

Object of class cjbart, the result of running IMCE()

covar

Character string detailing the covariate over which to analyze heterogeneous effects

plot_levels

Optional vector of conjoint attribute levels to plot. If not supplied, all attributes within the conjoint model will be plotted.

se

Boolean determining whether to show an estimated 95% confidence interval

...

Additional arguments for plotting the marginal component effects (see below).