sorcerer2064 发表于 2010-8-26 14:49 
在SAS中输入:
DATA E1;
INPUT X1-X7 Y @ @;
cards;
1 4 0 1 2 2 3 1
1 4 0 1 1 2 3 0
;
proc logistic desc;
class X7/parma =ref;
model y= x1-x7/selection =backward
sls =0.05 risklimits;
run;
提示:ERROR: 过程 LOGISTIC 没有找到。请高手帮看看是哪的问题,是LICENSE的问题吗?
是LICENSE的问题吗?是. The log on my PC See below.
Run
proc setinit;run;
To see if you have SAS/STAT LICENSED.
NOTE: SAS initialization used:
real time 10.87 seconds
cpu time 1.56 seconds
1 DATA E1;
2 INPUT X1-X7 Y @ @;
3 cards;
NOTE: The data set WORK.E1 has 2 observations and 8 variables.
NOTE: DATA statement used (Total process time):
real time 0.84 seconds
cpu time 0.00 seconds
6 ;
7 proc logistic desc;
8 class X7/parma =ref;
-----
1
WARNING 1-322: Assuming the symbol PARAM was misspelled as parma.
9 model y= x1-x7/selection =backward
10 sls =0.05 risklimits;
11 run;
NOTE: PROC LOGISTIC is modeling the probability that Y=1.
NOTE: The CLASS variable X7 has only one level: '3'.
WARNING: There is a complete separation of data points in Step 0. The maximum likelihood estimate
does not exist.
WARNING: The LOGISTIC procedure continues in spite of the above warning. Results shown are based on
the last maximum likelihood iteration. Validity of the model fit is questionable.
NOTE: X1 was removed after Step 0 because of its redundancy.
NOTE: X2 was removed after Step 0 because of its redundancy.
NOTE: X3 was removed after Step 0 because of its redundancy.
NOTE: X4 was removed after Step 0 because of its redundancy.
NOTE: X6 was removed after Step 0 because of its redundancy.
NOTE: X7 was removed after Step 0 because of its redundancy.
NOTE: Convergence criterion (GCONV=1E-8) satisfied in Step 1.
NOTE: There were 2 observations read from the data set WORK.E1.
NOTE: PROCEDURE LOGISTIC used (Total process time):
real time 1.84 seconds
cpu time 0.14 seconds