y*********s 发帖数: 24 | 1 how to save the result of proc logistic model in a data set?
I tried the code as below in the proc logistic and print the data set out.
output out = filename;
however, it turns out it only prints out the original data set.
Is something I did wrong?
ps: I would like the model based on the training set to be assessed using
the rest of the data set. So I need to get the coeff of the model, that is
why I want to record the output of proc logistic in a data set.
Is there a much better way to do this? |
n***p 发帖数: 508 | 2 my impression is that if you use ods output, then you need to put "ods
listing close" before it, otherwise it will just print out the results
instead of saving it to a file.
【在 y*********s 的大作中提到】 : how to save the result of proc logistic model in a data set? : I tried the code as below in the proc logistic and print the data set out. : output out = filename; : however, it turns out it only prints out the original data set. : Is something I did wrong? : ps: I would like the model based on the training set to be assessed using : the rest of the data set. So I need to get the coeff of the model, that is : why I want to record the output of proc logistic in a data set. : Is there a much better way to do this?
|
n******e 发帖数: 53 | 3 怎么牛人们都不回答?难道不是
ods output ParameterEstimates=filename; |
n*****s 发帖数: 10232 | 4 试试score statement,然后再用proc score
【在 y*********s 的大作中提到】 : how to save the result of proc logistic model in a data set? : I tried the code as below in the proc logistic and print the data set out. : output out = filename; : however, it turns out it only prints out the original data set. : Is something I did wrong? : ps: I would like the model based on the training set to be assessed using : the rest of the data set. So I need to get the coeff of the model, that is : why I want to record the output of proc logistic in a data set. : Is there a much better way to do this?
|
k****w 发帖数: 26 | 5 在proc logistic前加上ods trace on;
log 里就有你要的各个statictics的名称,
把这个名称加到ods output 名称=dataset; |
j**********3 发帖数: 305 | 6 You need to specify the statistic you wanna output ? Otherwise SAS will just
output the original dataset. If you want to output y hat(predicted prob).
Use output out =aaa p= pred .There are something other statistics available
for proc logistic output. You may check the proc logistic help doc in SAS
online tutorial. |