【发布时间】:2015-03-07 22:08:40
【问题描述】:
我正在寻找类似于 Proc 分数(来自 proc reg 的结果)的东西来估计数据集。
到目前为止,我有这样的东西。
PROC MIXED data = maindata noclprint covtest;
Class ID;
Weight w1;
Model TIME = Age Age*Age / Solution cl residual;
Random Intercept Age Age*Age / sub=ID;
Estimate 'ID1' Intercept 1 Age 10 Age*Age 100 | Intercept 1 Age 10 Age*Age 100/ cl Subject 1;
Estimate 'ID2' Intercept 1 Age 12 Age*Age 144 | Intercept 1 Age 12 Age*Age 144/ cl Subject 0 1;
Estimate 'ID3' Intercept 1 Age 11 Age*Age 121 | Intercept 1 Age 11 Age*Age 121/ cl Subject 0 0 1;
Estimate 'ID4' Intercept 1 Age 15 Age*Age 225 | Intercept 1 Age 15 Age*Age 225/ cl Subject 0 0 0 1;
(. . . You get the point)
run; quit;
这是我的估计数据集:
ID Age AgeSq
1 10 100
2 12 144
3 11 121
4 15 225
...
50 9 81
我的问题是有任何其他方法比拥有 50 条这些估计语句更有效。
我尝试了 PROC PLM。 PROC PLM (SCORE(PREDICTED)) 的问题在于它不会对帐户产生随机影响。(http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_plm_a0000000126.htm)
【问题讨论】:
-
你有什么版本的 SAS?
-
SAS Stat 13.1+ 代码声明=> support.sas.com/documentation/cdl/en/statug/67523/HTML/default/…
-
今天刚试过CODE语句。 CODE 语句与 proc plm 有同样的问题。它不考虑随机效应。
标签: sas proc mixed-mode