Programming the statistical procedures from SAS

Proc Reg

Posts: 0

Proc Reg

There is no class statement in proc reg, so how should I use the discrete predicted variable in proc reg ?

Or in that situation I need to use proc GLM.

Or it doesnt matter as regression dont have any assumption with predcitors ?
Trusted Advisor
Posts: 2,114

Re: Proc Reg

If you have a discrete valued predictor in reg, you can recode it to a binary or series of binary predictors (coded as numeric 0-1) and include them in the model. Reg will not 'lump' them together for the inclusion or exclusion in the various stepwise models; if you want to do that, you will need to manually implement the steps in GLM.
Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation