1
$\begingroup$

I am trying to run a model using SAS proc hplogistic.

The syntax I used is (this is just an example, the actual data set has 100 independent variable, so it's difficult to type all interaction terms and quadratic terms manually):

proc hplogistic data = inputdata; model flag(event = '1') = age gender @2/association; selection method = stepwise; run;

where inputdata has 100K rows and 3 columns: flag, age and gender. flag only take value 0 or 1; age has 3 levels: young, middle, old; gender has 2 levels: male and female. I want to automatically add 2-way interaction terms and quadratic terms: age^2, gender^2 and age*gender. @2 is designed for that. However, when I run the code, I got warning message: NOTE: '@n' notation is only valid with bar effects.

And no interaction terms or quadratic terms returned. Anyone knows why?

$\endgroup$

closed as off-topic by mdewey, Michael Chernick, kjetil b halvorsen, jbowman, Peter Flom Oct 23 '17 at 11:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – mdewey, Michael Chernick, kjetil b halvorsen, jbowman, Peter Flom
If this question can be reworded to fit the rules in the help center, please edit the question.

0
$\begingroup$
proc hplogistic data = inputdata; 
model flag(event = '1') = age | gender @2 /association; 
selection method = stepwise; 
run;

Refer to this link for more details.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.