Learn R Programming

Publish (version 2023.01.17)

print.ci: Print confidence intervals

Description

Print confidence intervals

Usage

# S3 method for ci
print(x, se = FALSE, print = TRUE, ...)

Value

A string: the formatted confidence intervals

Arguments

x

Object containing point estimates and the corresponding confidence intervals

se

If TRUE add the standard error.

print

Logical: if FALSE do not actually print confidence intervals but just return them invisibly.

...

passed to summary.ci

Author

Thomas A. Gerds <tag@biostat.ku.dk>

Details

This format of the confidence intervals is user-manipulable.

See Also

ci plot.ci formatCI summary.ci

Examples

Run this code
library(lava)
m <- lvm(Y~X)
m <- categorical(m,Y~X,K=4)
set.seed(4)
d <- sim(m,24)
ci.mean(Y~X,data=d)
x <- ci.mean(Y~X,data=d)
print(x,format="(l,u)")

Run the code above in your browser using DataLab