PoDCurvePlot: PoD curve: plot

Description Usage Arguments Value Examples

View source: R/FunctionsPoDParameters.R

Description

Supplementary function for plotting the PoD curve with the confidence ribbon (of a required level). Input values are related to PoDBAY package structure. See vignette("EfficacyEstimation", package = "PoDBAY") for an example of application of this function.

Usage

1
2
3
PoDCurvePlot(titers,
             estimatedParameters,
             ci = 0.95)

Arguments

titers

numeric vector: grid of titers at which the confidence ribbon should be calculated

estimatedParameters

estimatedParameters named data frame (pmax, slope, et50): set of estimated PoD curve parameters, output of PoDParamEstimation function.

ci

numeric, required confidence level

Value

PoD curve plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Data preparation
library(ggplot2)
data(PoDParams)
data(estimatedParameters)

## Example 1
# titers for which we want calculate the confidence intervals
titers <- seq(from = 0, to = 15, by = 0.01)

# squared error of CurveTitersMedian and functional values of "params" curve
PoDCurvePlot(titers,
             estimatedParameters,
             ci = 0.95)

PoDBAY documentation built on Sept. 21, 2021, 5:08 p.m.