Performs a Finite Mixture Regression (FMR) with censored based in the SMN using EM-type algorithm for iteratively computing maximum likelihood estimates of the parameters.
fmr.smn.cr(cc, y, x, Abetas = NULL, sigma2 = NULL, pii = NULL, nu=NULL, g = NULL,
family = "Normal", error = 0.00001, iter.max = 100)
Vector of censoring indicators. For each observation: 0 if non-censored, 1 if censored.
Vector of responses in case of right censoring.
Matrix or vector of covariates for each component
Parameters of vector regression dimension \((p_j + 1)\) include or not intercept, j=1,...,G
Initial value for the EM algorithm. Each of them must be a vector of length g.(the algorithm considers the number of components to be adjusted based on the size of these vectors)
Initial value for the EM algorithm. Each of them must be a vector of length g.(the algorithm considers the number of components to be adjusted based on the size of these vectors)
Initial value for the EM algorithm, nu it's degrees of freedom. Value of one size 1 (If Student's t or Slash) or size 2 (if Contaminated Normal)
Numbers of components
"T": fits a t-student regression mixture for censured data or "Normal": fits a Normal regression mixture censored data or "Slash": fits a Slash regression mixture censored data or "NormalC": fits a Contaminated Normal regression mixture censored data
define the stopping criterion of the algorithm
the maximum number of iterations of the EM algorithm
Zeller, C. B., Cabral, C. R. B. and Lachos, V. H. (2016). Robust mixture regression modeling based on scale mixtures of skew-normal distributions. Test, 25, 375-396.
# NOT RUN {
#See examples for the fmr.smn.cr function linked above.
# }
Run the code above in your browser using DataLab