楼主: 清水乀
1739 1

求教logistic里面对照组的问题 [推广有奖]

  • 0关注
  • 0粉丝

初中生

14%

还不是VIP/贵宾

-

威望
0
论坛币
7 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
416 点
帖子
4
精华
0
在线时间
17 小时
注册时间
2014-2-18
最后登录
2017-4-18

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请问desc 和'order=data'什么意义,怎么确定里面的对照组?
ods select none;
  ods trace on; ods listing close;
  proc logistic data=x_all1 desc order=data;
    class  flres1 age1 sex ecogres1  tfld1 eln siteid_;
    model visn=flres1 age1 sex ecogres1  tfld1 eln  siteid_/expb;
/*   ods output  ModelInfo= ModelInfo;*/
/*   ods output  NObs=NObs;*/
/*   ods output  ResponseProfile=ResponseProfile;*/
/*   ods output  ClassLevelInfo= ClassLevelInfo;*/

/*   ods output   ConvergenceStatus= ConvergenceStatus;*/
/*   ods output   CumulativeModelTest= CumulativeModelTest;*/
/*   ods output   FitStatistics= FitStatistics ;*/
    ods output   GlobalTests= GlobalTests;
    ods output   Type3= Type3;
/*    ods output   Association= Association  ;*/
    ods output   OddsRatios= OddsRatios ;
    ods output   ParameterEstimates=ParameterEstimates;
  run;
  ods trace off;
  ods select all;

  data GlobalTests;set GlobalTests;
     if test='Likelihood Ratio';
     keep ProbChiSq;
  run;
  data  Type3;set Type3( keep=Effect ProbChiSq);
     rename  ProbChiSq=bianlP Effect=variable;
/* col0='';*/
  n=_N_;
  proc sort; by variable ;
  run;
  data  OddsRatios ;set OddsRatios ;run;
  data  ParameterEstimates;set ParameterEstimates(keep=variable Estimate StdErr ProbChiSq);
     if Variable^='Intercept';
  rename  ProbChiSq=yaP;
  run;

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:logistic logisti ogistic logist logis close

沙发
hkhl237 发表于 2014-6-18 13:41:14 |只看作者 |坛友微信交流群
You can find the details in sas help:
DESCENDING
DESC
reverses the sorting order for the levels of the response variable. If both the DESCENDING and ORDER= options are specified, PROC LOGISTIC orders the levels according to the ORDER= option and then reverses that order. This option has the same effect as the response variable option DESCENDING in the MODEL statement. See the section Response Level Ordering for more detail.


ORDER=DATA | FORMATTED | FREQ | INTERNAL
RORDER=DATA | FORMATTED | INTERNAL
specifies the sorting order for the levels of the response variable. See the response variable option ORDER= in the MODEL statement for more information. For ordering of CLASS variable levels, see the ORDER= option in the CLASS statement.

REF=’level’ | keyword
specifies the reference level for PARAM=EFFECT, PARAM=REFERENCE, and their orthogonalizations. For an individual (but not a global) variable REF= option, you can specify the level of the variable to use as the reference level. Specify the formatted value of the variable if a format is assigned. For a global or individual variable REF= option, you can use one of the following keywords. The default is REF=LAST.

FIRST
designates the first ordered level as reference.

LAST
designates the last ordered level as reference.

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 03:03