summary.ci | R Documentation |
Summarize confidence intervals
## S3 method for class 'ci' summary(object, format = "[u;l]", se = FALSE, print = TRUE, ...)
object |
Object of class ci containing point estimates and the corresponding confidence intervals |
format |
A string which indicates the format used for
confidence intervals. The string is passed to
|
se |
If |
print |
Logical: if |
... |
used to control formatting of numbers |
This format of the confidence intervals is user-manipulable.
Formatted confidence intervals
Thomas A. Gerds <tag@biostat.ku.dk>
ci plot.ci format.ci
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 <- summary(ci.mean(Y~X,data=d),digits=2) x x <- summary(ci.mean(Y~X,data=d),format="(u,l)",digits=2) x <- summary(ci.mean(Y~X,data=d),format="(u,l)",digits=1,se=TRUE) x <- summary(ci.mean(Y~X,data=d),format="(u,l)",digits=1,handler="format") x <- summary(ci.mean(Y~X,data=d),format="(u,l)",digits=1,handler="prettyNum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.