distributionParams {HKRbook} | R Documentation |
distributionParams
Description
Computes approximate distribution parameters for the binomial, hypergeometric, Poisson, Exponential and normal distribution for a given mean (and standard deviation). With the sample and the population size the computation can be influenced.
Usage
distributionParams(mean, sd, n = 30, N = 60)
Arguments
mean |
numeric: mean |
sd |
numeric: standard deviation (only used for the normal distribution) |
n |
integer: sample size (default: |
N |
integer: population size (default: |
Value
a list of parameters for each distribution
Examples
# Compute approx. paramaters for a binomial distribution
distributionParams(mean=30*0.5, sd=sqrt(30*0.5*0.5))
[Package HKRbook version 0.1.3 Index]