全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1958 1
2014-06-17
请问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;

二维码

扫码加我 拉你入群

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

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

全部回复
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.

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群