Description Usage Arguments Value Examples
View source: R/FunctionsClinicalTrial.R
Function assigns disease status (DS) to vaccinated and control groups and based on that calculates the casecount efficacy. Vaccinated and control groups are provided in the form of population class objects (see the Populationclass
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.
1  ClinicalTrial(vaccinated, control, CI = 0.95)

vaccinated 

control 

CI 
numeric: value from (0, 1) interval, confidence level of interest 
vaccinated: vaccinated subjects with assigned DS, Populationclass
object
control: control subjects with assigned DS, Populationclass
object
efficacy: casecount efficacy
confidenceInterval: casecount efficacy confidence interval calculated with waldCI()
function
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 casecount efficacy with 95\% confidence interval
CT < ClinicalTrial(vaccinated, control, CI = 0.95)
CT$efficacy
CT$confidenceInterval
CT$vaccinated

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.