I have a panel data which I would like to fit a logit/xtlogit for it. I added i.year as time dummiesin my model for capturing common year effects and I got estimated time coefficient for each in-sample years. However, an issue arises when I want to calculate out of sample probability because there are no estimated intercepts for out of sample years. Do you have any suggestion for handling this issue? I notice that if I use c.year instead of i.year I can calculate out of sample probability but my in sample predictions looks nicer using i.year.
Thanks in advance for your suggestions
Sepi
Related Posts with Out of sample prediction for a logit model with dummy for time effect
Multiple linear regression - Cross-sectional data - Percentage as response variableDear community, I'm trying to run a multiple linear regression with stata 16 using cross-sectional …
Calculating egfr using creatinineDear users Can you please someone share their experience of using the stata module written by phil …
Dividing data into periods and then groupsHi! I want to divide my panel data into different cross-sectional data of each group, and then divi…
Adjusting the Scale of Cluster GraphHey everybody, I am currently conducting a cluster analysis in Stata and I have a small problem. As…
Replace stringsHi all, I have a database as the following: Code: * Example generated by -dataex-. To install: ss…
Subscribe to:
Post Comments (Atom)
0 Response to Out of sample prediction for a logit model with dummy for time effect
Post a Comment