JitterMean: Population mean jittering

Description Usage Arguments Value Examples

View source: R/FunctionsPODBAYEfficacy.R

Description

Function jitters the mean of the population.

Jittering is adding noise to the mean. The jittered mean is sampled from the distribution with the population mean and population standard deviation divided by the number of subjects in the population. The input population is provided in the form of population class objects (see the Population-class function for more details).

MeanJitter ~ N(mean, sd/N)

Usage

1
JitterMean(blindPopulation)

Arguments

blindPopulation

Population-class object with N, mean, stdDev attributes

Value

Jittered mean, numeric value

Examples

1
2
3
4
5
6
## Data preparation
data(vaccinated)

## Example 1
vaccinated$mean
JitterMean(vaccinated)

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