ci_order: Check The Order of Bounds in a List of 'semlbci' Objects

View source: R/nearby_levels.R

ci_orderR Documentation

Check The Order of Bounds in a List of semlbci Objects

Description

Check whether the LBCIs in a list of semlbci-class of objects are consistent with their levels of confidence.

Usage

ci_order(semlbci_list)

## S3 method for class 'ci_order'
print(x, digits = 3, ...)

Arguments

semlbci_list

An object of class semlbci_list, such as the output of nearby_levels().

x

The output of ci_order().

digits

The number of decimal places in the printout.

...

Additional arguments. Not used.

Value

A ci_order-class object with a print method print.ci_order(). The number of rows is equal to the number of parameters in semlbci_list, and the columns stores the confidence limits from the list, ordered according to the level of confidence.

x is returned invisibly. Called for its side effect.

Methods (by generic)

  • print(ci_order): The print method of the output of ci_order().

Author(s)

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

See Also

nearby_levels(), semlbci()

Examples


library(lavaan)
mod <-
"
m ~ x
y ~ m
"
fit_med <- sem(mod, simple_med, fixed.x = FALSE)
lbci_fit <- semlbci(fit_med)
lbci_fit_nb <- nearby_levels(lbci_fit,
                             ciperc_levels = c(-.050, .050))

# Check the order of the confidence bounds.
# A confidence interval with a higher level of confidence
# should enclose a confidence interval with
# a lower level of confidence.
ci_order(lbci_fit_nb)


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