Learn R Programming

Publish (version 2017.10.24)

print.ci: Print confidence intervals

Description

Print confidence intervals

Usage

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

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

Value

A string: the formatted confidence intervals

Details

This format of the confidence intervals is user-manipulable.

See Also

ci plot.ci formatCI summary.ci

Examples

Run this code
# NOT RUN {
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