ci: Function to extract confidence interval(s)

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/extractors.R

Description

Generic function that extracts the confidence interval(s) of an object of class PK.

Usage

1
ci(obj, method=NULL) 

Arguments

obj

An output object of class PK.

method

A character string specifying the method of the confidence interval. If NULL (default) all intervals are returned.

Details

Generic function to allow easy extraction of confidence intervals.

Value

A matrix containing confidence interval bounds.

Author(s)

Thomas Jaki

References

Nedelman J. R., Gibiansky E. and Lau D. T. W. (1995). Applying Bailer's method for AUC confidence intervals to sparse sampling. Pharmaceutical Research, 12(1):124-128.

See Also

estimator and test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Example from Nedelman et al. (1995)
conc <- c(2790, 3280, 4980, 7550, 5500, 6650, 2250, 3220, 213, 636)
time <- c(1, 1, 2, 2, 4, 4, 8, 8, 24, 24)

obj <- auc(conc=conc, time=time, method=c("z", "t"), design="ssd")

## all requested ci's
ci(obj)

## a specific ci
ci(obj, method="t")

Example output

 **********   PK Version 1.3-3********** 

Type PKNews() to see new features/changes/bug fixes.

                                                  lower    upper
95% CI using a t distribution for AUC to tlast 33477.66 86294.34
95% CI using a z distribution for AUC to tlast 48611.31 71160.69
                                                  lower    upper
95% CI using a t distribution for AUC to tlast 33477.66 86294.34

PK documentation built on April 3, 2020, 1:07 a.m.

Related to ci in PK...