由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - help: proc logistic
相关主题
SAS DATA 求助SAS format 的问题
SAS菜鸟请教如果使SAS的output的结果放到一个文件内?SAS 求助: filenames
sas低手请教一个output问题问个效率问题 SQL vs data step,大数据量
请教一sas codeSAS help : Proc dataset
问个SAS入门级的问题。。多谢。。请教一个SAS画图
[SAS] data set options (obs=) in output tablesSAS macro question
SAS question如何比较两个proc contents的结果?
请问SAS如何把put的内容输出到output窗口rw一个关于保存simple logistic分析结果的问题
相关话题的讨论汇总
话题: logistic话题: proc话题: output话题: set话题: data
进入Statistics版参与讨论
1 (共1页)
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.
1 (共1页)
进入Statistics版参与讨论
相关主题
rw一个关于保存simple logistic分析结果的问题问个SAS入门级的问题。。多谢。。
如何从sas output里读入数据。[SAS] data set options (obs=) in output tables
求教一个简单的data step 牛肉包SAS question
sas proc means 问题请问SAS如何把put的内容输出到output窗口
SAS DATA 求助SAS format 的问题
SAS菜鸟请教如果使SAS的output的结果放到一个文件内?SAS 求助: filenames
sas低手请教一个output问题问个效率问题 SQL vs data step,大数据量
请教一sas codeSAS help : Proc dataset
相关话题的讨论汇总
话题: logistic话题: proc话题: output话题: set话题: data