print.ci: Print confidence intervals

View source: R/print.ci.R

print.ciR Documentation

Print confidence intervals

Description

Print confidence intervals

Usage

## S3 method for class '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

Details

This format of the confidence intervals is user-manipulable.

Value

A string: the formatted confidence intervals

Author(s)

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

See Also

ci plot.ci formatCI summary.ci

Examples

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)")

Publish documentation built on Jan. 18, 2023, 1:08 a.m.