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.
numeric vector: vector of non-diseased subjects titer values
numeric: total number of non-diseased subjects, required size of the non-diseased population
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
nondiseasedTiters: numeric vector of all non-diseased subjects titers
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.