Description Usage Arguments Details Value Examples
ztplnmMLE
fits the Zero-truncated Poisson lognormal mixture distribution
to data and estimates parameters mean mu
, standard deviation sig
and
mixture weight theta
in the lognormal distribution.
1 2 3 4 5 6 7 8 9 10 11 12 |
n |
a vector of counts |
K |
number of components |
lower_mu, upper_mu |
numeric values of lower and upper bounds for mean of the variables's natural logarithm. |
lower_sig, upper_sig |
numeric values of lower and upper bounds for standard deviation of the variables's natural logarithm |
lower_theta, upper_theta |
numeric values of lower and upper bounds for mixture weights. |
type1 |
logical; if TRUE, Use type 1 ztpln else use type 2. |
message |
mean of lognormal distribution in sample 3. |
The function searches the maximum likelihood estimators of mean vector mu
,
standard deviation vector sig
and mixture weight vector theta
using the
optimization procedures in nlminb
.
convergence |
An integer code. 0 indicates successful convergence. |
iterations |
Number of iterations performed. |
message |
A character string giving any additional information returned by the optimizer, or NULL. For details, see PORT documentation. |
evaluation |
Number of objective function and gradient function evaluations |
mu |
Maximum likelihood estimates of mu |
sig |
Maximum likelihood estimates of sig |
theta |
Maximum likelihood estimates of theta |
loglik |
loglikelihood |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.