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 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.
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, Population-class
object
control: control subjects with assigned DS, Population-class
object
efficacy: case-count efficacy
confidenceInterval: case-count 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 case-count 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.