Learn R Programming

AID (version 3.0)

confInt.boxcoxfr: 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 boxcoxfr
confInt(x, level = 0.95, plot = TRUE, xlab = NULL, ylab = NULL, title = NULL, 
  width = NULL, verbose = TRUE, ...)

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%).

Arguments

x

a boxcoxfr object.

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.

Author

Osman Dag

Details

Confidence interval in each group is constructed separately.

Examples

Run this code

library(AID)

data(AADT)
attach(AADT)
out <- boxcoxfr(aadt, class)
confInt(out, level = 0.95)

Run the code above in your browser using DataLab