Description Usage Arguments Details Value Author(s) References Examples

Return EM algorithm output for right, left or interval censored regression model under SMN distributions (Normal, Student-t, Pearson VII, Slash or Contaminated Normal), built the corresponding envelope graph and compute some criteria for model selection, such as AIC, BIC and EDC.

1 2 | ```
CensReg.SMN(cc,x,y,LS=NULL,nu=3,delta=NULL,cens="left",dist="T",
show.envelope="FALSE", error=0.0001,iter.max=300)
``` |

`cc` |
Vector of censoring indicators. For each observation: 0 if non-censored, 1 if censored. |

`x` |
Matrix or vector of covariates. |

`y` |
Vector of responses in case of right/left censoring. Vector of lower limits if censoring is intervalar. |

`LS` |
Vector of upper limits if interval censoring. Must not be provided in case of left/right censoring. |

`nu` |
Initial value of the parameter of the scale variable of the SMN family. Must not be provided in case of Normal distribution. Must be a bidimensional vector in case of contaminated normal distribution (NormalC). |

`delta` |
Second parameter of Pearson VII, fixed. Must not be provided in case of Normal, Student-t or slash distribution. |

`cens` |
"left" for left censoring, "right" for right censoring, "interval" for interval censoring. |

`dist` |
Distribution to be used in fitting: "Normal" for Normal model, "T" for Student-t model, "PearsonVII" for Pearson VII model, "Slash" for slash model and "NormalC" for contaminated Normal model. |

`show.envelope` |
TRUE or FALSE. Indicates if envelope graph should be built for the fitted model (based on transformed Martingale residuals). Default is FALSE. |

`error` |
The convergence maximum error. |

`iter.max` |
The maximum number of iterations of the EM algorithm. Default=300. |

For the contaminated Normal distribution, each component of the bidimensional vector "nu" must lie on (0,1). For the Pearson VII distribution, delta is fixed as the provided value and is not estimated. The parameters beta and sigma2 are initialized with the minimum square estimators of the regression x vs y. If you want to fit a regression model for non-censored data, just set "cc" as a vector of zeros and "cens" as either "right" or "left".

`beta` |
EM estimates for the regression coefficients. |

`sigma2` |
EM estimates for the scale parameters. |

`logver` |
Returned the value of the log-likelihood under the fitted model. |

`count` |
Number of interations until convergence. |

`AIC` |
AIC criteria for model selection. |

`BIC` |
BIC criteria for model selection. |

`EDC` |
EDC criteria for model selection. |

`SE` |
Standard error estimates. |

Aldo M. Garay aldowmg@ime.usp.br, Monique Bettio Massuia moniquemassuia@gmail.com and Victor Hugo Lachos hlachos@ime.unicamp.br

Aldo M. Garay, Victor H. Lachos, Heleno Bolfarine, Celso R. Cabral. "Censored Regression Models with Scale Mixture of Normal Distributions". Tech. Rep. 13â€“13. IMECCâ€“UNICAMP

1 | ```
##see examples in \code{\link{wage.rates}}
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.