ClinicalTrial: Clinical trial: estimation of case-count efficacy

Description Usage Arguments Value Examples

View source: R/FunctionsClinicalTrial.R

Description

Function assigns disease status (DS) to vaccinated and control groups and based on that calculates the case-count efficacy. Vaccinated and control groups are provided in the form of population class objects (see the Population-class function for more details).

Input populations need to contain information about Probability of disease (PoD) for each subject - calculated using population$assignPoD(PoD(x)). See PoD function for further details.

Usage

1

Arguments

vaccinated

Population-class object: vaccinated subjects with assigned PoD

control

Population-class object: control subjects with assigned PoD

CI

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

Value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Loading vaccinated, control population data with PoD information
data(vaccinated)
data(control)

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

CT$efficacy
CT$confidenceInterval

CT$vaccinated

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