{"action":"created","issue":{"url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/68","repository_url":"https://api.github.com/repos/DjalmaPessoa/convey","labels_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/68/comments","events_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/68/events","html_url":"https://github.com/DjalmaPessoa/convey/issues/68","id":158295665,"number":68,"title":"svycv function should not exist because `survey::cv` already contains those methods","user":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DjalmaPessoa/convey/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"guilhermejacob","id":12241665,"avatar_url":"https://avatars.githubusercontent.com/u/12241665?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermejacob","html_url":"https://github.com/guilhermejacob","followers_url":"https://api.github.com/users/guilhermejacob/followers","following_url":"https://api.github.com/users/guilhermejacob/following{/other_user}","gists_url":"https://api.github.com/users/guilhermejacob/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermejacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermejacob/subscriptions","organizations_url":"https://api.github.com/users/guilhermejacob/orgs","repos_url":"https://api.github.com/users/guilhermejacob/repos","events_url":"https://api.github.com/users/guilhermejacob/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermejacob/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/DjalmaPessoa/convey/milestones/1","html_url":"https://github.com/DjalmaPessoa/convey/milestones/v0.1.0","labels_url":"https://api.github.com/repos/DjalmaPessoa/convey/milestones/1/labels","id":1640439,"number":1,"title":"v0.1.0","description":null,"creator":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":12,"state":"open","created_at":"2016-03-12T14:39:47Z","updated_at":"2016-06-08T15:28:19Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-03T05:46:47Z","updated_at":"2016-06-08T15:28:19Z","closed_at":null,"body":"hi guilherme, i believe that the function introduced in this commit is not correctly implemented.\r\nhttps://github.com/DjalmaPessoa/convey/compare/67f08c9c31...324f03a4be\r\n\r\nthe expected technique to access the coefficient of variation should be something like this, i think?\r\n\r\n    cv( svymean(~eqincome, des_eusilc, squared = TRUE, na.rm = FALSE ) )\r\n\r\nare there other uses of `svycv` that cannot be accessed using `survey::cv`?\r\n\r\n\r\nin most cases, the coefficient of variation should be accessed from the `cvystat` object using this method:\r\n\r\n\t> survey:::cv.default\r\n\tfunction (object, warn = TRUE, ...) \r\n\t{\r\n\t\trval <- SE(object)/coef(object)\r\n\t\tif (warn && any(coef(object) < 0, na.rm = TRUE)) \r\n\t\t\twarning(\"CV may not be useful for negative statistics\")\r\n\t\trval\r\n\t}\r\n\t<environment: namespace:survey>\r\n\r\n\r\nhowever, if you need a special case for certain object classes, then you should follow the technique used by thomas lumley where certain classes have their own specific method (like `svyratio` below)\r\n\r\n\t> survey:::cv.svyratio\r\n\tfunction (object, ...) \r\n\t{\r\n\t\tsqrt(object$var)/object$ratio\r\n\t}\r\n\t<environment: namespace:survey>\r\n\t> \r\n\r\n\r\nam i overlooking something?  if not, please remove `svycv`  ..sorry if i'm making a mistake and thanks for the hard work on this  :)"},"comment":{"url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/comments/224626183","html_url":"https://github.com/DjalmaPessoa/convey/issues/68#issuecomment-224626183","issue_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/68","id":224626183,"user":{"login":"guilhermejacob","id":12241665,"avatar_url":"https://avatars.githubusercontent.com/u/12241665?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermejacob","html_url":"https://github.com/guilhermejacob","followers_url":"https://api.github.com/users/guilhermejacob/followers","following_url":"https://api.github.com/users/guilhermejacob/following{/other_user}","gists_url":"https://api.github.com/users/guilhermejacob/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermejacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermejacob/subscriptions","organizations_url":"https://api.github.com/users/guilhermejacob/orgs","repos_url":"https://api.github.com/users/guilhermejacob/repos","events_url":"https://api.github.com/users/guilhermejacob/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermejacob/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T15:28:19Z","updated_at":"2016-06-08T15:28:19Z","body":"There's something odd with the survey `cv` and `svycv`. The svygei with `epsilon = 2` should be equal to half the squared coefficient of variation. For `svycv`, it does; for survey `cv`, it doesn't.\r\n\r\nThe formulas for svy and svygei come from independent articles and match.\r\nHere's the main article for svycv: [http://www.jos.nu/Articles/abstract.asp?article=13141].\r\n\r\nAny ideias on that?"}}
{"actor":{"display_login":"guilhermejacob"}}