| emmethod | stsdas.analysis.statistics | emmethod |
emmethod -- Compute linear regression for censored data by EM method
emmethod input
The `emmethod' task calculates linear regression coefficients assuming a normal distribution of residuals. The EM algorithm can treat several independent variables if the dependent variable contains only one kind of censoring (i.e., upper or lower limits). There is considerable uncertainty regarding the error analysis of the regression coefficients of the EM method. This task uses analytic formulae based on asymptotic normality.
Coefficients should be entered as a comma separated list. The first coefficient should be the estimate of the intercept and the rest of the coefficients should be the estimates of the slopes of the independent variables. If the number of values in the list is less than the number of coefficients, remaining coefficients will be set to zero. If the number of values in the list is greater than the number of coefficients, the extra values will be ignored.
1. Apply `emmethod' to the data in the table "kriss.tab", using the columns "Censor" for the censoring indicator, "LogL1mu" for the first independent variable column, "LogL2500A" for the second independent variable column, and "LogL2keV" for the dependent variable column. Then use the file "iraslum.dat" (text file), columns 1, 2, and 3 (censor, independent, dependent). Several files may be processed sequentially. The following will compute the EM algorithm linear regression fit for the two files indicated:
cl> emmethod kriss.tab[Censor,LogL1mu,LogL2500A,LogL2keV], \ >>> iraslum.dat[1,2,3]
The code for this task allows a censor indicator of 5, which flags a dependent variable that is confined between two values. In this case, the input would contain two columns of dependent variables, one for the lower limit and the other for the upper limit. This option has not been adequately tested, however, and in fact it has been known to fail.
censor, survival
Type "help statistics option=sys" for a higher-level description of the `statistics' package.