全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
46394 8
2015-04-06
进行回归命令:
reg Y X

得到统计表
再执行命令:

predict Yhat
这个命令会生成 变量 Yhat
并且系统 显示“(option xb assumed; fitted values)”

看范例 写的是 predict Yhat ,xb

后边这个xd 是干嘛的?
可以进行什么操作?
二维码

扫码加我 拉你入群

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

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

全部回复
2015-4-6 13:06:59
这不就是预测你的Y的嘛
二维码

扫码加我 拉你入群

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

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

2015-4-11 10:51:16
其实这个命令跟predict Yhat得出的结果是一样的,只不过带上xb是用来区分resid的,带上xb表示得出的y值,而带上resid得出的是残差值,以此来进行说明,也更容易记清与比较。
二维码

扫码加我 拉你入群

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

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

2015-5-21 19:36:05
夏虫可以语冰 发表于 2015-4-11 10:51
其实这个命令跟predict Yhat得出的结果是一样的,只不过带上xb是用来区分resid的,带上xb表示得出的y值,而 ...
感谢!
二维码

扫码加我 拉你入群

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

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

2016-3-29 10:17:30
    xb calculates the linear prediction from the fitted model.  That is, all
        models can be thought of as estimating a set of parameters b1, b2,
        ..., bk, and the linear prediction is y = xb.  For linear regression,
        the values y are called the predicted values or, for out-of-sample
        predictions, the forecast.  For logit and probit, for example, y is
        called the logit or probit index.

        x1, x2, ..., xk are obtained from the data currently in memory and do
        not necessarily correspond to the data on the independent variables
        used to fit the model (obtaining the b1, b2, ..., bk).
二维码

扫码加我 拉你入群

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

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

2017-1-8 09:33:09
y=xb+r
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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