Programming the statistical procedures from SAS

Rstudent option in Proc Reg in SAS for dichotomous dependent variable

Reply
Occasional Contributor
Posts: 5

Rstudent option in Proc Reg in SAS for dichotomous dependent variable

I have a data set with dichotomous dependent variable. Can I use Rstudent option in proc reg to identify outliers for a dichotomous dependent variable?

 

proc reg data = work.import;
model Target= x;
output out = outdata rstudent= r;
run;

Super User
Posts: 18,603

Re: Rstudent option in Proc Reg in SAS for dichotomous dependent variable

Couldn't you look at a histogram or distribution of the variable by the outcome variable?

 

I don't think the R student statistics is designed for categorical variables. 

Super User
Posts: 9,782

Re: Rstudent option in Proc Reg in SAS for dichotomous dependent variable


No. You pick up wrong model for dichotomous variable.
Check PROC LOGISTIC and OBSSTAT option.

Occasional Contributor
Posts: 5

Re: Rstudent option in Proc Reg in SAS for dichotomous dependent variable

Hi,

 

Could you explain the OBSSTAT option with an example. It would be of great help.

 

Thanks

Abhishek

Super User
Posts: 9,782

Re: Rstudent option in Proc Reg in SAS for dichotomous dependent variable

Sorry. Check INFLUENCE of model statement.

model ......./ influence

especially check DIFDEV DIFSQUAR


INFLUENCE< (STDRES) >
displays diagnostic measures for identifying influential observations in the case of a binary response
model. For each observation, the INFLUENCE option displays the case number (which is the sequence
number of the observation), the values of the explanatory variables included in the final model, and
the regression diagnostic measures developed by Pregibon (1981). The STDRES option includes
standardized and likelihood residuals in the display.


Super User
Posts: 18,603

Re: Rstudent option in Proc Reg in SAS for dichotomous dependent variable

Look at the INFLUENCE option with proc LOGISTIC on the model statement. The documentation has an example on regression diagnostics including detecting influential observations. 

 

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_logistic_syn...

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_logistic_exa...

 

 

If using proc genmod then obsstat is an option. Both will help with detecting outliers. 

 

 

Ask a Question
Discussion stats
  • 5 replies
  • 199 views
  • 6 likes
  • 3 in conversation