LTNMM {MMAD} | R Documentation |
MM algorithm based on the AD method for left-truncated normal distribution
Description
The LTNMM
function is used to calculate a left-truncated normal distribution model. A LTN(\mu, \sigma^2; a)
has the density function
f(y; \mu, \sigma^2; a) = \frac{1}{c \sqrt{2 \pi \sigma^{2}}} \exp{( -\frac{(y-\mu)^{2}}{2 \sigma^{2}} )} \centerdot I(y \geq a)
where (\mu, \sigma^2)
are two unknown parameters, a
is a known constant, c = 1- \Phi(\frac{a-u}{ \sigma})
, and \Phi(\centerdot)
is the cdf of the standard normal distribution.
Usage
LTNMM(
formula,
a,
mu = NULL,
sigma = NULL,
data = sys.frame(sys.parent()),
Maxiter = 2000,
convergence = 1e-06,
...
)
Arguments
formula |
A formula object which symbolically describes the model to calculated. |
a |
A numeric scalar of the known left truncation value. |
mu |
The mean of the normal distribution is set to NULL by default. If the distribution is truncated, we use estimates from OLS. |
sigma |
The variance of the normal distribution is set to NULL by default. If the distribution is truncated, we use estimates from OLS. |
data |
List that contains corresponding covariates. If none is provided then assumes objects are in user’s environment. |
Maxiter |
The maximum number of iterations is specified by default as 2000. |
convergence |
Specify the convergence criterion, the default is 1e-6. |
... |
Additional arguments |
Details
The LTNMM
function is used to calculate a left-truncated normal distribution model using MM algorithms based on AD technology.
The formula
parameter can be used to provide the data that needs to be calculated, such as formula=y~1
. By default, the
data
is provided by the user’s environment. The initial values of the mean and variance of the normal distribution are estimated using OLS.
Value
An object of class LTNMM
that contains the following fields: total amount of observations,
the number of iterations, convergence rate, the log likelihood value, estimated results for the unknown parameters,
the standard deviation of estimate for the unknown parameters, the likelihood-based 95% confidence interval for the unknown parameters,
information criterion: AIC value and BIC value.
References
Tian G.L., Huang X.F., and Xu, J.(2019). 'An assembly and decomposition approach for constructing separable minorizing functions in a class of MM algorithms.' Statistica Sinica 29(2), 961-982.
Examples
y=c(8.7, 5.4, 8.9, 5.8, 6.2, 9.9, 7.5, 9.5, 6.5, 6.3); a=5
LTNMM(y~1, a=5)