ExtractDiseased: Diseased subjects extraction

Description Usage Arguments Value Examples

View source: R/FunctionsImmunogenicitySample.R

Description

Function extracts diseased subjects from vaccinated and control groups if the data have assigned disease status (for example using ClinicalTrial function). The vaccinated and control data are provided in the form of population class objects (see the Population-class function for more details).

Usage

1

Arguments

vaccinated

Population-class object: vaccinated subjects with assigned disease status

control

Population-class object: control subjects with assigned disease status

Value

diseased subjects, Population-class object: a subset of control and vaccinated subjects with disease status = TRUE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Example 1
# Data preparation
data(vaccinated)
data(control)

# Estimating the disease status and case-count efficacy with CI
ClinicalTrial(vaccinated, control, CI = 0.95)

# Extracting the disease cases
ExtractDiseased(vaccinated, control)

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