Learn R Programming

reproducer (version 0.5.3)

calculatePopulationStatistics: calculatePopulationStatistics

Description

This helper function constructs the theoretical effect sizes and distribution statistics four (normal, lognormal, Laplace & gamma) given specific parameter values for the distributions and is used to support the calculation of population statistics for two and four group experiments.

Usage

calculatePopulationStatistics(mean, std, type = "n")

Value

dataframe containing the expected standardized effect size, mean, variance,skewness and kurtosis statistics for samples from the specific distribution

Arguments

mean

The theoretical central location parameter for the distribution specified by the type parameter.

std

The theoretical spread parameter for the distribution specified by the type parameter.

type

String identifying the distribution, 'n' for normal, 'ln' for lognormal, 'lap' for Laplace, 'g' for Gamm

Author

Barbara Kitchenham and Lech Madeyski

Examples

Run this code
reproducer:::calculatePopulationStatistics(mean=0, std=1, type='l')
#   RawMean RawVariance RawEffectSize RawSkewness RawKurtosis
#1 1.648721    4.670774      0.762874    6.184877    88.54343
reproducer:::calculatePopulationStatistics(mean=0, std=1, type='n')
#   RawMean RawVariance RawEffectSize RawSkewness RawKurtosis
# 1       0           1             0           0           3

Run the code above in your browser using DataLab