PoDCurvePlot {PoDBAY}R Documentation

PoD curve: plot

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

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

## 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)


[Package PoDBAY version 1.4.3 Index]