est.tpn | R Documentation |
Perform the parameter estimation for the truncated positive normal (tpn) discussed in Gomez et al. (2018) based on maximum likelihood estimation. Estimated errors are computed based on the hessian matrix.
est.tpn(y)
y |
the response vector. All the values must be positive. |
A variable have tpn distribution with parameters \sigma>0
and \lambda \in
R if its probability density
function can be written as
f(y; \sigma, \lambda, q) = \frac{\phi\left(\frac{y}{\sigma}-\lambda\right)}{\sigma \Phi(\lambda)}, y>0,
where \phi(\cdot)
and \Phi(\cdot)
denote the density and cumultative distribution functions for the standard normal distribution.
A list with the following components
estimate |
A matrix with the estimates and standard errors |
logLik |
log-likelihood function evaluated in the estimated parameters. |
AIC |
Akaike's criterion. |
BIC |
Schwartz's criterion. |
A warning is presented if the estimated hessian matrix is not invertible.
Gallardo, D.I. and Gomez, H.J.
Gomez, H.J., Olmos, N.M., Varela, H., Bolfarine, H. (2018). Inference for a truncated positive normal distribution. Applied Mathemetical Journal of Chinese Universities, 33, 163-176.
set.seed(2021)
y=rtpn(n=100,sigma=10,lambda=1)
est.tpn(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.