楼主: krqq1
1468 4

关于logistic模型编程求助 [推广有奖]

  • 0关注
  • 0粉丝

已卖:2份资源

高中生

42%

还不是VIP/贵宾

-

威望
0
论坛币
85 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1816 点
帖子
20
精华
0
在线时间
18 小时
注册时间
2013-5-8
最后登录
2014-11-4

楼主
krqq1 发表于 2013-5-8 18:17:33 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
如何利用sas进行求解多分类logistic模型;
例如:
x1  x2           y
               1    2    3
0    0       1   0    10
0    1       5   2    7
1    0       6   7   19
1    1      16  5   6
要进行model y=x1 x2的logistic回归。其中红色数字为频数。

二维码

扫码加我 拉你入群

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

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

关键词:Logistic模型 logistic logisti ogistic logist 编程 模型

沙发
邓贵大 发表于 2013-5-8 18:54:41
(1) transpose your data by x1 x2
(2) then do something like http://www.ats.ucla.edu/stat/sas/output/sas_mlogit.htm
(3) if ordinal response then use some reference other than (2)
已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
Imasasor + 100 + 100 + 4 + 5 + 5 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 100  学术水平 + 4  热心指数 + 5  信用等级 + 5   查看全部评分

Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

藤椅
boe 发表于 2013-5-8 19:03:11
邓贵大 发表于 2013-5-8 18:54
(1) transpose your data by x1 x2
(2) then do something like http://www.ats.ucla.edu/stat/sas/output ...
你老人家玩穿越呢?
Gorgeous girl , I love !

板凳
krqq1 发表于 2013-5-9 16:25:11
邓贵大 发表于 2013-5-8 18:54
(1) transpose your data by x1 x2
(2) then do something like http://www.ats.ucla.edu/stat/sas/output ...
怎么去将数据录入,你给的网页只有调用数据文件,源数据文件看不到。

报纸
邓贵大 发表于 2013-5-9 21:17:34
krqq1 发表于 2013-5-9 16:25
怎么去将数据录入,你给的网页只有调用数据文件,源数据文件看不到。
I guess it's like this
  1. data hell;
  2. input x1 x2 y1 y2 y3;
  3. datalines;
  4. 0    0       1   0    10
  5. 0    1       5   2    7
  6. 1    0       6   7   19
  7. 1    1      16  5   6
  8. ;
  9. proc transpose data = hell;
  10.      by x1 x2;
  11.      var y1 y2 y3;
  12. run;
  13. data hell;
  14. set hell;
  15. rename col1=count;
  16. y = substr(_name_,2) + 0;
  17. proc print;
复制代码
no more question please. It's too much work for an old man like me.
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-5 16:32