bd-stats | R Documentation |
Miscellaneous statistical functions.
## 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)
x |
Vector of values to be transformed. |
n |
Number of random deviates. |
mean |
Mean of random deviates. |
sd |
Standard deviation of random deviates. |
logit(x) = log(x / (1 - x))
expit(x) = exp(x) / (1 + exp(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.