{"id":217,"date":"2010-11-10T10:32:30","date_gmt":"2010-11-10T15:32:30","guid":{"rendered":"https:\/\/cyrussamii.com\/?p=217"},"modified":"2010-11-10T10:32:30","modified_gmt":"2010-11-10T15:32:30","slug":"mundane-algebra-stratified-mean-and-ipw-mean","status":"publish","type":"post","link":"https:\/\/cyrussamii.com\/?p=217","title":{"rendered":"Mundane algebra: stratified mean and IPW mean"},"content":{"rendered":"<p>Came up in a conversation, so I just wanted to store it: the stratified mean and inverse-probability weighted mean are algebraically equivalent:<\/p>\n<p style=\"text-align: center;\">\n$latex \\underbrace{N^{-1}\\sum_{s=1}^S \\sum_{i \\in s}y_{is}\\frac{R_{is}N_s}{n_s}}_{\\text{IPW mean}} = \\sum_{s=1}^S\\frac{N_s}{N}\\frac{1}{n_s}\\sum_{i \\in s}y_{is}R_{is} = \\underbrace{\\sum_{s=1}^S\\frac{N_s}{N}\\bar{y}_s}_{\\text{stratified mean}}$,<\/p>\n<p>where $latex N$ is population size; $latex N_s$ and $latex n_s$ are stratum $latex s$ population and sample size, respectively; and $latex R_{is}$ is the response indicator for unit $latex i$ in stratum $latex s$.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Came up in a conversation, so I just wanted to store it: the stratified mean and inverse-probability weighted mean are algebraically equivalent: $latex \\underbrace{N^{-1}\\sum_{s=1}^S \\sum_{i \\in s}y_{is}\\frac{R_{is}N_s}{n_s}}_{\\text{IPW mean}} = \\sum_{s=1}^S\\frac{N_s}{N}\\frac{1}{n_s}\\sum_{i \\in s}y_{is}R_{is} = \\underbrace{\\sum_{s=1}^S\\frac{N_s}{N}\\bar{y}_s}_{\\text{stratified mean}}$, where $latex N$ is population size; $latex N_s$ and $latex n_s$ are stratum $latex s$ population and sample size, respectively; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/cyrussamii.com\/?p=217\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mundane algebra: stratified mean and IPW mean&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217"}],"version-history":[{"count":10,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}