The $estimate_plot()
method creates plots showing overall MRP estimates or
estimates for different demographic groups. Check out the
More examples of R6 classes
vignette for usage examples.
Arguments
- model
Fitted MRPModel object
- group
Character string specifying the demographic group. If left as
NULL
, overall estimates are plotted.- interval
Confidence interval (a numeric value between 0 and 1) or standard deviation (
"1sd"
or"2sd"
) for the estimates (default is 0.95).- show_caption
Logical indicating whether to show the caption in the plot (default is TRUE).
- file
Optional file path to save the plot.
- ...
Additional arguments passed to
ggsave
, such aswidth
andheight
.