Fit_dist_parameter {EnviroPRA} | R Documentation |
Returns the distribution parameters adjusted for by maximum likelihood (mle) for the following distributions: "normal","log-normal","geometric","exponential","Poisson", "cauchy" , "logistic" and "weibull"
Fit_dist_parameter(x)
x |
A numeric vector of length at least one containing only finite values (non-censored data) |
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 |
F. Barrio-Parra
Function fitdistr in Library (MASS)
a <- rnorm(n=100, mean =10, sd = 1) b <- Fit_dist_parameter(a) # Examples of result extraction b$normal b$weibull