楼主: somdat
1939 2

[原创博文] 调用系数 [推广有奖]

  • 0关注
  • 0粉丝

副教授

3%

还不是VIP/贵宾

-

威望
0
论坛币
1682 个
通用积分
0.0600
学术水平
2 点
热心指数
2 点
信用等级
2 点
经验
10008 点
帖子
156
精华
0
在线时间
1225 小时
注册时间
2007-5-18
最后登录
2024-8-16

楼主
somdat 发表于 2010-10-14 19:53:02 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
用sas建立了线性回归模型,如何在程序中调用各自变量的系数,希望各位高手能指点一下
二维码

扫码加我 拉你入群

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

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

关键词:线性回归模型 回归模型 线性回归 自变量 程序 模型 如何

沙发
bobguy 发表于 2010-10-18 00:41:14
somdat 发表于 2010-10-14 19:53
用sas建立了线性回归模型,如何在程序中调用各自变量的系数,希望各位高手能指点一下
There are several ways doing it.
1) you may pass the coefs to a set of macro variables via a data step call symput and you can refer to/use them in later stages.
2) proc score after the coefs are save into a dataset. Here is the reference of proc score

Overview: SCORE ProcedureThe SCORE procedure multiplies values from two SAS data sets, one containing coefficients (for example, factor-scoring coefficients or regression coefficients) and the other containing raw data to be scored using the coefficients from the first data set. The result of this multiplication is a SAS data set containing linear combinations of the coefficients and the raw data values.
Many statistical procedures output coefficients that PROC SCORE can apply to raw data to produce scores. The new score variable is formed as a linear combination of raw data and scoring coefficients. For each observation in the raw data set, PROC SCORE multiplies the value of a variable in the raw data set by the matching scoring coefficient from the data set of scoring coefficients. This multiplication process is repeated for each variable in the VAR statement. The resulting products are then summed to produce the value of the new score variable. This entire process is repeated for each observation in the raw data set. In other words, PROC SCORE cross multiplies part of one data set with another.


3) you may use a trick to define a weight and score a data set within a regression procedure.


Which way to use depends on your case in practice.

藤椅
somdat 发表于 2010-10-19 19:26:26
谢谢。。 2# bobguy

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

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