全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1465 5
2014-03-23
x1x2x3x4x5y
111111
9.94305468580.506980911.882722124-1.55634655-1.182925910
73.43894166919.46813535.2453248214.652933668-17.5571695100
1.32700141212.243500714.4899943440.0657844630.3061383791
101856543239911339809515672052469-7.40E-077.35E-061E+10

就是这个了,跪求答案啊

二维码

扫码加我 拉你入群

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

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

全部回复
2014-3-23 18:03:45
没有人。。大神们呢。。呜呜
二维码

扫码加我 拉你入群

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

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

2014-3-23 21:15:37
mkmat x*, mat(X)
mkmat y, mat(Y)
mat S=inv(X)*Y
svmat S



二维码

扫码加我 拉你入群

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

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

2014-3-24 00:03:16
jjjj6666 发表于 2014-3-23 21:15
mkmat x*, mat(X)
mkmat y, mat(Y)
mat S=inv(X)*Y
不是很懂。。可以解释一下吗?stata入门都不算。。
二维码

扫码加我 拉你入群

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

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

2014-3-24 00:16:54
put you data into stata with 6 variables and 5 observations, the variables are x1 x2 x3 x4 x5 and y, we then put x1 x2 x3 x4 x5 into matrix X by using "mkmat x*, mat(X)" and put y into matrix Y, then solve the matrix equation using mat S=inv(X)*Y (in algebra, we can think the solution is as XS=Y, so S=X^(-1)*Y), "svmat S" put the solution back in the data with variable name S1
二维码

扫码加我 拉你入群

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

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

2014-3-24 00:30:36
jjjj6666 发表于 2014-3-24 00:16
put you data into stata with 6 variables and 5 observations, the variables are x1 x2 x3 x4 x5 and y, ...
讲的好细致,英文的解释我都看懂了,谢谢您了
虽然原理我不清楚,但是以后至少可以代入公式了,再次谢谢了
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群