BookmarkSubscribeRSS Feed
SUMMER2024
Calcite | Level 5
你好
 
在 SAS 中编写 proc reg 语句后,输出中会写到:
 
注意:模型不是满排名。参数的最小二乘解不是唯一的。一些统计数据可能会产生误导。报告的 DF 为 0 或 B 表示估计值有偏差。
 
注意:以下参数已设置为 0,因为变量是其他变量的线性组合,如图所示。
Proc Reg data=HFA.SHEET1; 
	Model ML = CommA CommB EnvA EnvB HFAA HFAB / HCC tol vif collin; 
	restrict CommA + CommB = 0; 
	restrict EnvA + EnvB = 0;  
run; 
quit;
ML:质量损失(有4个研究级别)
CommA、CommB 、EnvA、EnvB 、HFAA 和 HFAB 是等于 1 或 0 的虚拟变量。
 
模型中的虚拟变量数量有问题吗?
非常感谢您的帮助。
1 REPLY 1
whymath
Lapis Lazuli | Level 10
如果你限制 CommA + CommB = 0,那么有:CommB = -CommA,也就是说,CommB 可以完全使用 CommA 表示。因此,模型语句中无需再出现 CommB。

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 270 views
  • 1 like
  • 2 in conversation