confint.semlbci: Confidence Intervals for a 'smelbci' Object

View source: R/confint_semlbci.R

confint.semlbciR Documentation

Confidence Intervals for a 'smelbci' Object

Description

Return the confidence intervals of the parameters in the output of semlbci().

Usage

## S3 method for class 'semlbci'
confint(object, parm, level = 0.95, ...)

Arguments

object

The output of semlbci().

parm

The parameters for which the confidence intervals are returned. Not used because parameters are defined by three or more columns (lhs, op, rhs, and group for multisample models).

level

Ignored. The level of confidence is determined when calling semlbci() and cannot be changed.

...

Optional arguments. Ignored.

Details

It returns the likelihood-based confidence intervals in the output of semlbci().

Value

A two-column matrix of the confidence intervals.

Author(s)

Shu Fai Cheung https://orcid.org/0000-0002-9871-9448

See Also

semlbci()

Examples



library(lavaan)
mod <-
"
m ~ a*x
y ~ b*m
ab := a * b
"
fit_med <- sem(mod, simple_med, fixed.x = FALSE)
p_table <- parameterTable(fit_med)
p_table
lbci_med <- semlbci(fit_med,
                    pars = "ab :=")
lbci_med

confint(lbci_med)


semlbci documentation built on June 22, 2024, 10:55 a.m.