GenerateNondiseased: Generation of upsampled non-diseased subjects titers

Description Usage Arguments Details Value Examples

View source: R/FunctionsPoDParameters.R

Description

Function upsamples (by random sampling with replacement) titers from the immunogenicity subset to the required size.

If the size of the immunogenicity subset matches the required size, nothing happens and the original titers from the immunogenicity subset are returned.

Usage

1
GenerateNondiseased(blindNondiseasedTiters, nondiseasedCount)

Arguments

blindNondiseasedTiters

numeric vector: vector of non-diseased subjects titer values

nondiseasedCount

numeric: total number of non-diseased subjects, required size of the non-diseased population

Details

The inputs should come from immunogenicity subset. "nondiseasedCount" represents number of all non-diseased patients in the clinical trial.

Immunogenicity subset populations are obtained from function BlindSampling. Immunogenicity subset represents a sample from the non-diseased population.

In this function, sampling with replacement to the required "nondiseasedCount" of the immunogenecitry subset is performed. The function is used inside PoDParamEstimation function.

Value

nondiseasedTiters: numeric vector of all non-diseased subjects titers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Data preparation
data(nondiseased)

## Example 1
# Creating imunogenicity subset, method = "Full"
NondiseasedImmunogenicitySubset <- 
    ImmunogenicitySubset(diseased, 
                         nondiseased, 
                         method = list(name = "Full", 
                                       value = "NA"))

# Number of all non-diseased subjects in the clinical trial
nondiseasedGenerationCount <- nondiseased$N

# Upsampling of non-diseased titers
GenerateNondiseased(NondiseasedImmunogenicitySubset$titers, nondiseasedGenerationCount)

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