Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No estimates returned when other exog vars have missing values #6

Open
ozak opened this issue Dec 9, 2016 · 1 comment
Open

No estimates returned when other exog vars have missing values #6

ozak opened this issue Dec 9, 2016 · 1 comment

Comments

@ozak
Copy link

ozak commented Dec 9, 2016

Hi Jeff,

I was trying out your command on Stata 14 and running a naive regression I do not get any results back, just .. It seems the command breaks if the dataset is not identical to the full sample. E.g. an observation with a missing value in some exogenous variable, which usually would be dropped, causes this issue. It seems one has to drop all observations that have any missing values that will not be predicted out of sample. To see this, in your test code include replace weight = . in 1 before line 10 and you won't get results back.

@jshrader
Copy link
Owner

Hi Ozak,

Thanks for opening this issue. I will check it out and see if a quick fix can be made. Otherwise, it sounds like simply dropping all non-missing values will do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants