stats: Stats

Description Usage Arguments Details Author(s)

Description

Miscellaneous statistical functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## logistic transformation
logit(x)

## inverse logistic transformation
expit(x)

## random Gamma deviates with given mean and SD
rgamma2(n, mean, sd)

## random log-normal deviates with given mean and SD
rlnorm2(n, mean, sd)

Arguments

x

Vector of values to be transformed.

n

Number of random deviates.

mean

Mean of random deviates.

sd

Standard deviation of random deviates.

Details

logit(x) = log(x / (1 - x))
expit(x) = exp(x) / (1 + exp(x))

Author(s)

brechtdv@gmail.com


brechtdv/bd documentation built on June 19, 2019, 8:53 p.m.