{"action":"closed","issue":{"url":"https://api.github.com/repos/mcaceresb/stata-gtools/issues/50","repository_url":"https://api.github.com/repos/mcaceresb/stata-gtools","labels_url":"https://api.github.com/repos/mcaceresb/stata-gtools/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/mcaceresb/stata-gtools/issues/50/comments","events_url":"https://api.github.com/repos/mcaceresb/stata-gtools/issues/50/events","html_url":"https://github.com/mcaceresb/stata-gtools/issues/50","id":393642423,"node_id":"MDU6SXNzdWUzOTM2NDI0MjM=","number":50,"title":"(develop branch) gtools winsor gives incorrect results on missing values","user":{"login":"sergiocorreia","id":214056,"node_id":"MDQ6VXNlcjIxNDA1Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/214056?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiocorreia","html_url":"https://github.com/sergiocorreia","followers_url":"https://api.github.com/users/sergiocorreia/followers","following_url":"https://api.github.com/users/sergiocorreia/following{/other_user}","gists_url":"https://api.github.com/users/sergiocorreia/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiocorreia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiocorreia/subscriptions","organizations_url":"https://api.github.com/users/sergiocorreia/orgs","repos_url":"https://api.github.com/users/sergiocorreia/repos","events_url":"https://api.github.com/users/sergiocorreia/events{/privacy}","received_events_url":"https://api.github.com/users/sergiocorreia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-22T04:35:27Z","updated_at":"2018-12-27T04:07:00Z","closed_at":"2018-12-27T04:07:00Z","author_association":"NONE","body":"When winsorizing missing values, `gstats winsor` will fill in those missing values, instead of leaving them empty).\r\n\r\n```stata\r\nclear\r\nset obs 10\r\ngen y = _n if !inrange(_n, 4, 6)\r\nwinsor2 y, cut(1 99) suffix(_w)\r\ngstats winsor y, cut(10 90) suffix(_g)\r\nli\r\n```\r\n\r\nResults:\r\n```\r\n     +----------------+\r\n     |  y   y_w   y_g |\r\n     |----------------|\r\n  1. |  1     1     1 |\r\n  2. |  2     2     2 |\r\n  3. |  3     3     3 |\r\n  4. |  .     .    10 |\r\n  5. |  .     .    10 |\r\n     |----------------|\r\n  6. |  .     .    10 |\r\n  7. |  7     7     7 |\r\n  8. |  8     8     8 |\r\n  9. |  9     9     9 |\r\n 10. | 10    10    10 |\r\n     +----------------+\r\n```\r\n\r\n\r\n\r\nHappy holidays!\r\n-Sergio"}}
{"actor":{"display_login":"sergiocorreia"}}