View source: R/Estimation_ML.R
GetUncertainty_ML | R Documentation |
Returns an estimate of the uncertainty around the maximum-likelihood estimate, in the form of a covariance matrix and some simulations from the corresponding Gaussian distribution.
GetUncertainty_ML(y, dist, par, nsim = nsim_def)
y |
numeric vector, data |
dist |
character, distribution name |
par |
numeric vector, estimated parameter (using GetEstimate_ML()). |
nsim |
integer, number of simulated parameter replicates. |
A list with the following components:
cov |
numeric matrix npar*npar, covariance matrix. |
sim |
numeric matrix nsim*npar, simulated parameter replicates. |
ok |
logical, did computation succeed? |
err |
integer, error code (0 if ok) |
message |
error message |
y=c(9.2,9.5,11.4,9.5,9.4,9.6,10.5,11.1,10.5,10.4)
estim=GetEstimate_ML(y,'Gumbel',par0=GetEstimate_ROUGH(y,'Gumbel')$par)
GetUncertainty_ML(y,'Gumbel',par=estim$par)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.