confint.lav_betaselect: Confidence Intervals for a 'lav_betaselect'-Class Object

View source: R/confint_lav_betaselect.R

confint.lav_betaselectR Documentation

Confidence Intervals for a 'lav_betaselect'-Class Object

Description

Return the confidence intervals of betas-select in the output of lav_betaselect().

Usage

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

Arguments

object

The output of lav_betaselect().

parm

Ignored due to the complexity in the naming. The confidence intervals of all parameters are always returned.

level

The level of confidence. Ignored because the intervals should be formed when calling lav_betaselect().

...

Optional arguments. Ignored.

Details

The type of confidence intervals depends on the call to lav_betaselect(). This function does not recompute the confidence interval.

Value

A two-column matrix of the confidence intervals.

Author(s)

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

See Also

lav_betaselect()

Examples


library(lavaan)
mod <-
"
med ~ iv + mod + iv:mod
dv ~ med + iv
"
fit <- sem(mod,
           data_test_medmod,
           fixed.x = TRUE)
summary(fit)
fit_beta <- lav_betaselect(fit,
                           to_standardize = c("iv", "dv"))
confint(fit_beta)


betaselectr documentation built on April 3, 2025, 8:51 p.m.