开发者

polynomial terms in proc logistic and other regressions

I'd like to do the following regression

proc logistic data=abc
    model y = x x*x x*x*x ....;
run;

Is t开发者_运维技巧here a shorthand to generate these polynomial terms? Thanks.


Edit: That will teach me to look closer at the question before I answer. The BAR operator is indeed for interaction - not polynomial effects.

Logistic does not have shorthand to accomplish this yet that I know of - but glimmix does have an experimental technique using the effect statement. For example, this..

effect MyPoly = polynomial(x1-x3/degree=2);
       model y = MyPoly;

is the same as

model y = x1 x2 x3 x1*x1 x1*x2 x1*x3 x2*x2 x2*x3 x3*x3;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜