conf_int: Add confidence intervals to Mplus output

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RFunctions.R

Description

Takes an mplusModel object returned by readModels, and constructs nicely formatted confidence intervals. The method depends on the output; if the results section already contains confidence/credible intervals, these are reported. If not, the confidence interval is constructed from the "est" and "se" columns.

Usage

1
conf_int(mplusresults, digits = 2)

Arguments

mplusresults

An mplusModel object, as returned by readModels.

digits

Integer. The number of digits to round the confidence interval to.

Value

A character vector of formatted confidence intervals.

Author(s)

Caspar J. van Lissa

See Also

readModels.

Other Mplus functions: MplusConstrainModels, SBChisquare, SB_chisq_Pvalues, corTable, est_sig, mplusToTable, param_label, printResultsTable, rbind_tables

Examples

1
2
data <- data.frame(est = c(1.325, 2.432), se = c(.05336, .00325))
conf_int(data)

cjvanlissa/motley documentation built on Sept. 23, 2019, 7:39 p.m.