因变量y 自变量x1 x2 x3
reg y x1 x2 x3
后得到系数向量b
问:如何计算b'b
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
sysuse auto,clear
qui reg price wei len
mat b = e(b)
mat vv = b'*b
. mat list vv
symmetric vv[3,3] weight length _consweight 22.081211length -460.32186 9596.2227 _cons 48807.028 -1017468.8 1.079e+08
[此贴子已经被作者于2008-5-8 19:51:10编辑过]