calculatePopulationStatistics function

calculatePopulationStatistics

calculatePopulationStatistics

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.

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

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

Returns

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

Examples

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

Author(s)

Barbara Kitchenham and Lech Madeyski