EstimationTools
The goal of EstimationTools
is to provide a routine for parameter
estimation of probability density/mass functions in R
.
Installation
You can install the lastest version of EstimationTools
typing the
following command lines in R
console:
if (!require('devtools')) install.packages('devtools')
devtools::install_github('Jaimemosg/EstimationTools', force = TRUE)
library(EstimationTools)
Or you can install the released version from
CRAN if you
prefer. You can also type the following command lines in R
console:
install.packages("EstimationTools")
You can visit the package website to explore the vignettes (articles) and functions reference.
Example
This is a basic example which shows you how to solve a common maximum
likelihood estimation problem with EstimationTools
:
The solution for a data set generated with size is showed below
library(EstimationTools)
x <- rnorm( n = 10000, mean = 160, sd = 6 )
fit <- maxlogL( x = x, dist = "dnorm", link = list(over = "sd", fun = "log_link") )
summary(fit)
#> ---------------------------------------------------------------
#> Optimization routine: nlminb
#> Standard Error calculation: Hessian from optim
#> ---------------------------------------------------------------
#> AIC BIC
#> 64158.02 64154.02
#> ---------------------------------------------------------------
#> Estimate Std. Error
#> mean 159.954 0.0598
#> sd 5.982 0.0423
#> -----