{"action":"opened","issue":{"url":"https://api.github.com/repos/sergiocorreia/reghdfe/issues/17","labels_url":"https://api.github.com/repos/sergiocorreia/reghdfe/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/sergiocorreia/reghdfe/issues/17/comments","events_url":"https://api.github.com/repos/sergiocorreia/reghdfe/issues/17/events","html_url":"https://github.com/sergiocorreia/reghdfe/issues/17","id":78280408,"number":17,"title":"Predict outside e(sample)","user":{"login":"matthieugomez","id":6223837,"avatar_url":"https://avatars.githubusercontent.com/u/6223837?v=3","gravatar_id":"","url":"https://api.github.com/users/matthieugomez","html_url":"https://github.com/matthieugomez","followers_url":"https://api.github.com/users/matthieugomez/followers","following_url":"https://api.github.com/users/matthieugomez/following{/other_user}","gists_url":"https://api.github.com/users/matthieugomez/gists{/gist_id}","starred_url":"https://api.github.com/users/matthieugomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthieugomez/subscriptions","organizations_url":"https://api.github.com/users/matthieugomez/orgs","repos_url":"https://api.github.com/users/matthieugomez/repos","events_url":"https://api.github.com/users/matthieugomez/events{/privacy}","received_events_url":"https://api.github.com/users/matthieugomez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T22:44:51Z","updated_at":"2015-05-19T22:44:51Z","closed_at":null,"body":"Is there an option in `predict` to compute predicted value outside `e(sample)`, as in `reg`? \r\n\r\n```\r\nsysuse nlsw88, clear\r\n\r\n* reg: predict generates temp1 for all observations\r\nreg wage i.race if married == 0\r\npredict temp1\r\nassert temp1 <.\r\n\r\n* reghdfe:  predict generates temp2 only for observations in e(sample)\r\nreghdfe wage if married == 0, a(race, savefe)\r\npredict temp2, xbd\r\nassert temp2 <.\r\n```\r\n\r\n"}}