View source: R/generic-functions-minor.R
empiricalParameters | R Documentation |
Returns the empirical parameter estimate for a distribution
empiricalParameters(y, ...)
y |
output of rtrunc |
... |
other arguments passed to methods |
A vector of parameter estimates for the input sample
# Normal distribution
sampNorm <- rtrunc(50, mean = 5, sd = 2)
empiricalParameters(sampNorm)
# Poisson distribution
sampPois <- rtrunc(10, lambda = 100, family = "Poisson")
empiricalParameters(sampPois)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.