mc_summary_pct() summarizes a numeric vector of Monte Carlo samples x by
computing its mean, standard deviation, and percentile-based confidence interval.
The result is returned as a data.frame with column names that include percentage
signs. This function is typically used to generate tables of mediation effects or
path coefficient estimates with path labels.
Returned columns include:
Path: Path label.
Estimate: Sample mean.
SE: Sample standard deviation.
<p%CI.Lo>, <p%CI.Up>: Lower and upper bounds of the percentile CI,
with % in the column names.
mc_summary_pct(x, label, ci_level = 0.95, digits = 3)A data.frame containing the path label, estimate, standard error, and CI.
Column names are formatted like "2.5%CI.Lo" and "97.5%CI.Up".
Numeric vector of Monte Carlo samples.
Character string for the value in the Path column of the output.
Confidence level for the CI (default 0.95).
Number of decimal places to retain (default 3).