confInt.boxcoxfr {AID} | R Documentation |
Mean and Asymmetric Confidence Interval for Back Transformed Data
Description
confInt.boxcoxfr
calculates mean and asymmetric confidence interval for back transformed data in each group and plots their error bars with confidence intervals.
Usage
## S3 method for class 'boxcoxfr'
confInt(x, level = 0.95, plot = TRUE, xlab = NULL, ylab = NULL, title = NULL,
width = NULL, verbose = TRUE, ...)
Arguments
x |
a |
level |
the confidence level. |
plot |
a logical to plot error bars with confidence intervals. |
xlab |
a label for the x axis, defaults to a description of x. |
ylab |
a label for the y axis, defaults to a description of y. |
title |
a main title for the plot. |
width |
a numeric giving the width of the little lines at the tops and bottoms of the error bars (defaults to 0.15). |
verbose |
a logical for printing output to R console. |
... |
additional argument(s) for methods. |
Details
Confidence interval in each group is constructed separately.
Value
A matrix with columns giving mean, lower and upper confidence limits for back transformed data. These will be labelled as (1 - level)/2 and 1 - (1 - level)/2 in % (by default 2.5% and 97.5%).
Author(s)
Osman Dag
Examples
library(AID)
data(AADT)
attach(AADT)
out <- boxcoxfr(aadt, class)
confInt(out, level = 0.95)