waldCI: Wald confidence interval estimation

Description Usage Arguments Details Value Examples

View source: R/FunctionsClinicalTrial.R

Description

Function calculates and returns case-count efficacy confidence intervals estimated using Wald's method.

Input data need to contain information about disease status on individual level.

Usage

1
waldCI(vaccinated, control, confLevel = 0.95)

Arguments

vaccinated

Population-class object: vaccinated subjects, containing information about disease status

control

Population-class object: control subjects, containing information about disease status

confLevel

numeric: value from (0, 1) interval, confidence level of interest

Details

Confidence interval of the relative risk is calculated using the Wald method. (Wald, A. Tests of statistical hypotheses concerning several parameters when the number of observations is large. Transactions of the American Mathematical Society 54, 426-482 (1943)).

Value

Named list of lower and upper confidence interval bound

Examples

1
2
3
4
5
6
7
8
9
# Loading vaccinated and control populations data with PoD information
data(vaccinated)
data(control)

# Estimating the disease status and case-count efficacy with 95\% confidence interval
set.seed(1)
CT <- ClinicalTrial(vaccinated, control, CI = 0.95)

waldCI(vaccinated, control)

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