Nonparametric maximum likelihood estimation for dependent truncation data under the normal(Gaussian) copula models (Emura & Wang, 2012). The forms of the marginal distributions for X and Y are completely unspecified, but the parametric form of copula is specified as the normal(Gaussian) copula.
NPMLE.Normal(x.trunc, y.trunc,
x.fix = median(x.trunc), y.fix = median(y.trunc), plotX = TRUE)vector of variables satisfying x.trunc<=y.trunc
vector of variables satisfying x.trunc<=y.trunc
vector of fixed points at which marginal distribution function of X is calculated
vector of fixed points at which marginal survival function of Y are calculated
if TRUE, the culumative distribution function for X is plotted
estimate of association parameter
standard error of the estimate of association parameter
estimate of the marginal cumulative reverse-hazard function for X
standard error of the estimate of the marginal cumulative reverse-hazard function for X
estimate of the marginal cumulative hazard function for Y
standard error of the estimate of the marginal cumulative hazard function for Y
estimate of the marginal distribution function for X
standard error of the estimate of the marginal distribution function for X
estimate of the marginal survival function for Y
standard error of the estimate of the marginal survival function for Y
an integer indicating why the optimization process terminated in "nlm": If conv=1, the maximization of the likelihood function is properly done. Please refer R function "nlm" for more details.
the number of iterations until convergence
L_2 norm for the gradient vector at the solution (close to zero if the solution is proper)
Minimum eigenvalue of the Hessian matrix at the solution (positive if the solution is proper)
The function produces the nonparametric maximum likelihood estimate (NPMLE) for the marginal distributions and the estimate of the association parameter under the normal(Gaussian) copula model. The method follows Emura & Wang (2012). The maximization of the likelihood (L) is conducted by minimizing -logL by "nlm". Standard errors are calculated from the diagonal elements in the observed Fisher information matrix, which is obtained from the output of the "nlm". The method can handle ties but cannot handle right-censoring.
Emura T, Wang W (2012) Nonparametric maximum likelihood estimation for dependent truncation data based on copulas, Journal of Multivariate Analysis 110, 171-88
# NOT RUN {
x.trunc=c(0.53, 0.43, 1.63, 0.98, 0.62)
y.trunc=c(1.20, 4.93, 2.09, 2.57, 1.52)
# NPMLE.Normal(x.trunc, y.trunc, x.fix =1, y.fix = 2, plotX = TRUE)
# }
Run the code above in your browser using DataLab