generatePopulation: Population class object generation

Description Usage Arguments Value Examples

View source: R/FunctionsPopulationGeneration.R

Description

Function generates the population class object using provided summary statistics.

Usage

1
generatePopulation(N, mean, stdDev, unknownDistribution = FALSE, UDFunction = NULL)

Arguments

N

numeric: number of subjects in the population

mean

numeric: mean of titers

stdDev

numeric: standard deviation of titers

unknownDistribution

logical: TRUE if there is an unknown factor affacting the shape of titer distribution

UDFunction

function: function defining the unknown factor affecting the shape of titer distribution

Value

generated population class object with all its characteristics defined in the input parameters

Examples

1
2
3
4
5
6
7
# Example 1: empty population
population0 <- generatePopulation()

# Example 2
population1 <- generatePopulation(N = 100,
                                  mean = 5,
                                  stdDev = 2)

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