Fit_dist_parameter {EnviroPRA2} | R Documentation |
Returns adjusted distribution parameters
Description
Returns the distribution parameters adjusted for by maximum likelihood (mle) for the following distributions: "normal","log-normal","geometric","exponential","Poisson", "cauchy" , "logistic" and "weibull"
Usage
Fit_dist_parameter(x)
Arguments
x |
A numeric vector of length at least one containing only finite values (non-censored data) |
Value
normal |
Fitted Mean and sd for a normal distribution |
`log-normal` |
Fitted Meanlog and sdlog for a log-normal distribution |
geometric |
Fitted prob for a geometric distribution |
exponential |
Fitted rate for a exponential distribution |
Poisson |
Fitted lambda for a exponential distribution |
cauchy |
Fitted location and scale for a Cauchy distribution |
logistic |
Fitted location and scale for a Logistic distribution |
weibull |
Fitted shape and scale for a weibull distribution |
Author(s)
F. Barrio-Parra
See Also
Function fitdistr in Library (MASS)
Examples
a <- rnorm(n=100, mean =10, sd = 1)
b <- Fit_dist_parameter(a)
# Examples of result extraction
b$normal
b$weibull
[Package EnviroPRA2 version 1.0.1 Index]