2 つのモデルから出力されたオッズ比を SAS で異なる調整で結合しようとしています。
すなわち:
ods output oddsratios=adjustedOR1(rename=(OddsRatioEst=OR1);
proc logistic data=dataname;
model y= b d c a e; run;
ods output oddsratios=adjustedOR2 (rename=(OddsRatioEst=OR2);
proc logistic data=dataname;
model y= b d c; run;
プロシージャソート.....
data Oddsratios (keep=Effect OR1 OR2);
merge adjustedOR1 adjustedOR2; by effect; run;
問題は、効果変数で並べ替えてマージすると、説明変数をモデルに配置した順序が失われることです。
モデルに配置した順序に従って、変数にインデックスを割り当てる方法はありますか?
ご協力いただきありがとうございます