由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Economics版 - 问一个stata的问题
相关主题
关于stata的一个问题stata能运行panel logit with instrument吗?
[转载] 几本技术分析的书,大家帮忙看看Help for SAS
[合集] What predicts success in economics PHD program?请问用R如何实现binary choice logit model
【求助】美国宏观数据在什么database有?!!!!!!!!!!! 请推荐credit default model
Anyone interested in predicting unemployment rate?有什么好办法来present 模型的结果???
紧急求救:关于multivariate logit modelWhat about Data Crunching Club?
missing standard error 是怎么回事.推荐一个经济,金融,管理类书籍课件及相关软件下载的网站
跪求STATA编程问题[合集] 请问stata如何用IRT处理missing values?
相关话题的讨论汇总
话题: predict话题: stata话题: set话题: use话题: command
进入Economics版参与讨论
1 (共1页)
f*********y
发帖数: 376
1
若run 一个 logit on train data set, 然后用模型去分析 test set. 怎样能够直接
用从train set 的到的系数, 而不是先把结果保存,然后再自己输入. 我能想到的就是
把train set 和 test set 拼一起, 然后就可以直接用, 有没有更好的办法.
k***g
发帖数: 7244
2
predict

【在 f*********y 的大作中提到】
: 若run 一个 logit on train data set, 然后用模型去分析 test set. 怎样能够直接
: 用从train set 的到的系数, 而不是先把结果保存,然后再自己输入. 我能想到的就是
: 把train set 和 test set 拼一起, 然后就可以直接用, 有没有更好的办法.

f*********y
发帖数: 376
3
I know this command.
The example in help predict is below:
. use ds1
(fit a model)
. use two /* another dataset */
. predict yhat, ... /* fill in the predictions */
my Question is how to save the fitted model information nwhe I try to use
another data set.
By my understanding, I still need to put two data sets together. Then I can
use predict to predict subsamples.

【在 k***g 的大作中提到】
: predict
h****i
发帖数: 1674
4
return list or ereturn list to see what info after estimation is stored in
mem, then use matrix to store the info you need.
This is a stupid method I used sometime, there may be other built in routine
to do this.
hope help somehow
f*********y
发帖数: 376
5
thanks, I use predict to solve the prediction of logit model issue. I used
to think that predict command can not handle with out of sample prediction.
I also used your method for other models , which were built by myself. It
was not based on any existed models in STATA, thus predict command does not
work.

routine

【在 h****i 的大作中提到】
: return list or ereturn list to see what info after estimation is stored in
: mem, then use matrix to store the info you need.
: This is a stupid method I used sometime, there may be other built in routine
: to do this.
: hope help somehow

1 (共1页)
进入Economics版参与讨论
相关主题
[合集] 请问stata如何用IRT处理missing values?Anyone interested in predicting unemployment rate?
[合集] 请教如何把stata regression的结果formally贴到word里面去?紧急求救:关于multivariate logit model
[合集] 请教在STATA中如何简写一系列file names,谢谢missing standard error 是怎么回事.
[合集] 菜鸟问题:大家都用什么text editor?跪求STATA编程问题
关于stata的一个问题stata能运行panel logit with instrument吗?
[转载] 几本技术分析的书,大家帮忙看看Help for SAS
[合集] What predicts success in economics PHD program?请问用R如何实现binary choice logit model
【求助】美国宏观数据在什么database有?!!!!!!!!!!! 请推荐credit default model
相关话题的讨论汇总
话题: predict话题: stata话题: set话题: use话题: command