plotResidual {MixtureRegLTIC} | R Documentation |
A function to estimate and plot estimated empirical distribution functions of the residuals in the fitted regression model.
plotResidual(fit, xlab = NULL, ylab = NULL, main = NULL, col = NULL, lty = NULL, lwd = 1, axes = T)
fit |
the output object from the fitted mixture regression model. |
xlab |
the title for x axis. |
ylab |
the title for y axis. |
main |
the main title of the plot. |
col |
a vector of colors. |
lty |
a vector of line types. |
lwd |
a numeric value specifies the line width. |
axes |
a logical value specifies whether axes should be drawn. If axes=FALSE, both x and y axes are not shown . |
Chen CH, Tsay YC, Wu YC and Horng CF. Logistic-AFT location-scale mixture regression models with nonsusceptibility for left-truncated and general interval-censored data. Statistics in Medicine, 2013; 32:4285–4305.
data(simLTICdataA) ##### fit the logistic-AFT location-scale model for LTIC data fit=MixtureLogitAFT(formula=Surv(time1,time2,status)~1, eventprobreg=~X1,locationreg=~X1,scalereg=~X1, var.entry="entry",data=simLTICdataA) ##### plot the empirical distribution of residuals plot.res=plotResidual(fit) legend(-9.5,1,legend=plot.res$legend,col=plot.res$col,lty=plot.res$lty, title=" Strata (Case / Total)")