Description Usage Arguments Value Author(s) See Also Examples
View source: R/summary.maxLik.R
Summary the Maximum-Likelihood estimation including standard errors and t-values.
1 2 3 4 |
object |
object of class 'maxLik', or 'summary.maxLik', usually a result from Maximum-Likelihood estimation. |
eigentol |
The standard errors are only calculated if the ratio of the smallest and largest eigenvalue of the Hessian matrix is less than “eigentol”. Otherwise the Hessian is treated as singular. |
... |
currently not used. |
An object of class 'summary.maxLik' with following components:
type of maximization.
number of iterations.
code of success.
a short message describing the code.
the loglik value in the maximum.
numeric matrix, the first column contains the parameter estimates, the second the standard errors, third t-values and fourth corresponding probabilities.
logical vector, which parameters are treated as constants.
number of free parameters.
information about the constrained optimization.
Passed directly further from maxim
-object. NULL
if
unconstrained maximization.
Ott Toomet, Arne Henningsen
1 2 3 4 5 6 7 8 9 10 11 | ## ML estimation of exponential distribution:
t <- rexp(100, 2)
loglik <- function(theta) log(theta) - theta*t
gradlik <- function(theta) 1/theta - t
hesslik <- function(theta) -100/theta^2
## Estimate with numeric gradient and hessian
a <- maxLik(loglik, start=1, control=list(printLevel=2))
summary(a)
## Estimate with analytic gradient and hessian
a <- maxLik(loglik, gradlik, hesslik, start=1, control=list(printLevel=2))
summary(a)
|
Loading required package: miscTools
Please cite the 'maxLik' package as:
Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.
If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
https://r-forge.r-project.org/projects/maxlik/
----- Initial parameters: -----
fcn value: -58.17144
parameter initial gradient free
[1,] 1 41.82856 1
Condition number of the (active) hessian: 1
-----Iteration 1 -----
-----Iteration 2 -----
-----Iteration 3 -----
-----Iteration 4 -----
-----Iteration 5 -----
--------------
gradient close to zero (gradtol)
5 iterations
estimate: 1.719057
Function value: -45.82244
--------------------------------------------
Maximum Likelihood estimation
Newton-Raphson maximisation, 5 iterations
Return code 1: gradient close to zero (gradtol)
Log-Likelihood: -45.82244
1 free parameters
Estimates:
Estimate Std. error t value Pr(> t)
[1,] 1.7191 0.1719 10 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
--------------------------------------------
----- Initial parameters: -----
fcn value: -58.17144
parameter initial gradient free
[1,] 1 41.82856 1
Condition number of the (active) hessian: 1
-----Iteration 1 -----
-----Iteration 2 -----
-----Iteration 3 -----
-----Iteration 4 -----
-----Iteration 5 -----
--------------
gradient close to zero (gradtol)
5 iterations
estimate: 1.719057
Function value: -45.82244
--------------------------------------------
Maximum Likelihood estimation
Newton-Raphson maximisation, 5 iterations
Return code 1: gradient close to zero (gradtol)
Log-Likelihood: -45.82244
1 free parameters
Estimates:
Estimate Std. error t value Pr(> t)
[1,] 1.7191 0.1719 10 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
--------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.