Skip to content

SUMM/ENH: methods for complex survey, stratified sampling #3335

Open

Description

@josef-pkt

another standard tool that is missing Stata surv prefix and methods, R package, SAS, ...

related:

  • adding weights to models, specifically probability weights

...

References

books (with some brief comments from spot checking some sections)

Lehtonen, Risto, and Erkki Pahkinen. 2004. Practical Methods for Design and Analysis of Complex Surveys. 2nd ed. Statistics in Practice. Chichester, West Sussex, England ; Hoboken, NJ: J. Wiley.
covers univariate statistics (e.g. mean), linear regression and logit/binomial.
looks medium advanced, long empirical examples, quite a bit of math and references for it (e.g. small sample behavior of Wald versus LR with correction, Wald test also has small sample correction and F distribution approximation, mentions GEE for cluster robust estimation)

Mukhopadhyay, Parimal. 2016. Complex Surveys: Analysis of Categorical Data. Singapore: Springer Singapore. http://link.springer.com/10.1007/978-981-10-0871-9.
looks more advanced, high fraction of math. might be a good reference for implementation
categorical data only

Heeringa, Steven, Brady T. West, and Patricia A. Berglund. 2010. Applied Survey Data Analysis. Chapman & Hall/CRC Statistics in the Social and Behavioral Sciences Series. Boca Raton, FL: Chapman & Hall/CRC.
more introductory, low requirement for statistical background, has some "Theory Boxes" and some sections with math (overall more summation signs than matrix algebra), uses Stats, SAS?, SUDAAN?

Lumley, Thomas. 2010. Complex Surveys: A Guide to Analysis Using R. Wiley Series in Survey Methodology. Hoboken, N.J: John Wiley.
application oriented towards users of R survey package, too little math but likely useful for software requirements and references, and examples and unit tests against survey package.

There are more books, especially older ones, that sound interesting, but I don't have access to them,
and the same for some chapters in handbooks.

Fuller, Wayne A. 2009. Sampling Statistics. Wiley Series in Survey Methodology. Hoboken, N.J: Wiley.
based on a brief looks this seems to cover the theory behind finite sample (traditional) survey sampling well. It has theorems and proofs, while most other books mostly just state formulas without derivation or proofs. (and I like Fuller's measurement error book)
After skimming and reading a few sections, I think this is the best book (for me) to get some basic background theory on survey sampling.

Handbook of Statistic 29A and 29B look like good overview articles but I haven't seen a single theorem or proof yet. (very different from handbook of econometrics series.)

two more maybe "classics"
Cochran, William Gemmell. 1977. Sampling Techniques. 3d ed. Wiley Series in Probability and Mathematical Statistics. New York: Wiley.
traditional survey sampling, first edition was 1953

Wolter, Kirk M. 2007. Introduction to Variance Estimation. New York: Springer. http://public.eblib.com/choice/publicfullrecord.aspx?p=372101.
refers to Cochran for details for formulas in first chapter, later chapter look more "modern" methods for variance estimation with survey samples

Activity

  1. josef-pkt commented on Dec 22, 2016

    @josef-pkt
    MemberAuthor

    (opened mainly now to park some notes and references)

    #3334 related for contingency tables and log-linear
    The (older) statistics literature mostly is not explicit or "modern" enough for my background, i.e. no Huber-White sandwich reference.

    looking at econometric:

    Two articles by Wooldridge (downloaded a long time ago, but AFAIR, I never looked at them

    Wooldridge, Jeffrey M. 1999. “Asymptotic Properties of Weighted M-Estimators for Variable Probability Samples.” Econometrica 67 (6): 1385–1406.
    ———. 2002. “Inverse Probability Weighted M-Estimators for Sample Selection, Attrition, and Stratification.” Portuguese Economic Journal 1 (2): 117–39. doi:10.1007/s10258-002-0008-x.

    related slides and lecture notes
    by Wooldridge
    www.cemmap.ac.uk/resource/id/imbens_wooldridge/slides_9.pdf
    www.nber.org/WNE/lect_8_cluster.pdf
    and Arellano
    http://www.cemfi.es/~arellano/survey-metrics-sep2014-tr.pdf

    detail:
    Wooldridge: standard Huber-White HC sandwich applies but if we have stratified sampling we can get a better sandwich (inner cov subtracts strata specific mean from the weighted moment condition, as far as I interpret the formula correctly).
    Note: GMM and, I think, cov_type subtract the overall mean of the moment conditions or estimating equations. This would only be equivalent if we have separate moment conditions for each strata.
    According to Wooldridge Stata does the second if strata are specified in the svyset

    A note on weights #2848 : survey probability weights have no likelihood interpretation, that's why we need a QML interpretation and robust sandwich standard errors.
    This is different from freq_weights and var_weights and more similar to outlier robust weights.

  2. josef-pkt commented on Dec 22, 2016

    @josef-pkt
    MemberAuthor

    another detail:

    Stata uses a correction to the standard error (1-f) where f is the fraction of the "population" in the survey. Wooldridge is arguing similar things "somewhere".

    For cov_type:

    • If HC works for svy cov_params, then we still would need the (1-f) factor. We have an option for a generic cov_params adjustment factor, but it would be better to automatically set this for survey methods.
    • There might be other small sample and degrees of freedom adjustment.
    • API: (IIRC) Stata switches automatically to robust cov_type when svy is specified. In the basic case svy is just pweights + cov_type=HCx. In our case, we have a fixed default cov_type in each model, and I don't know whether or how we can switch the cov_type automatically, so users have to set only one option for all survey adjustments without having to remember to change several keywords.

    I think, it will be better to support a Survey class to hold the information about the complex sampling. once the case goes beyond the simple prob_weights + cov_type.

    One possibility: support cov_type="survey" but only if a Survey instance has been provided with all the necessary information.

    (I'm stopping here with survey, but prob_weights and cov_type need to be taken into account in the related refactorings and enhancements.)

  3. josef-pkt commented on Dec 22, 2016

    @josef-pkt
    MemberAuthor

    related to categorical data, I just saw that Springer has a new book (I didn't look at it.)

    Mukhopadhyay, Parimal. 2016. Complex Surveys: Analysis of Categorical Data. Singapore: Springer Singapore. http://link.springer.com/10.1007/978-981-10-0871-9.

  4. josef-pkt commented on Dec 23, 2016

    @josef-pkt
    MemberAuthor

    maybe interesting based on abstract (I didn't look at it.)
    Li, Jianzhu, and Richard Valliant. 2015. “Linear Regression Diagnostics in Cluster Samples.” Journal of Official Statistics 31 (1): 61–75. doi:10.1515/jos-2015-0003.

  5. josef-pkt commented on Dec 24, 2016

    @josef-pkt
    MemberAuthor

    random notes:

    R survey svydesign and Stata's svyset include the data in the Survey object. I think it's better to keep the meta- and sampling information separate from the actual data. Like having a standalone index and meta-information instead of having everything in one dataframe.
    The advantage is that we can reuse the sampling information for different datasets or subsets of variables, and we can use a keyword argument separate from the actual data, which is closer to what we are currently doing. Users could still keep it as part of their DataFrame, but we want the separate pieces.
    (Stata is forced to do it because it can only have one dataset in memory.)

  6. josef-pkt commented on Dec 25, 2016

    @josef-pkt
    MemberAuthor

    On the interpretation of finite population: descriptive versus analytical
    David A. Binder, Georgia Roberts Chapter 24 - Design- and Model-Based Inference for Model Parameters in Handbook of statistics. Vol. 29 B: Sample surveys Inference and analysis, Pages 33-54
    has a good explanation in the first sections about whether we want to compute statistics for the finite population or if we consider the finite population as a random sample from a set of super populations.
    E.g. do we want to predict the outcome or particular feature of the 2016 election, or do we want to estimate parameters that reflect or are common to all possible elections.
    In the first case, if we sample the entire finite population (a perfect census), then there is no uncertainty left. In the second case, even if we know everything about the current population without uncertainty, we still only have one sample from the infinite number of super populations.
    (In macroeconomics, even if we know GDP 2015 without measurement error, it's still a random variable and it's not the relevant parameter of interest.)

  7. josef-pkt commented on Jan 7, 2017

    @josef-pkt
    MemberAuthor

    related:
    purely design based methods take population variables as fixed: AFAIU Horvitz-Thompson estimator take correlation and dependent sampling into account, but not that the underlying variables might themselves be correlated.
    In model based methods the population variables are random variables and for cluster sampling we have to take into account that the random variables can be correlated (i.e. we need cluster robust standard errors)

    somewhere (?) it is mentioned that up to the 80s the two camps for survey sampling where opposite to each other but that they have largely combined methods since then.

    (Pure sampling design based analysis sounds a bit boring, like basic probability theory with combinatorics. I don't think in most application outside population census work will be much affected whether sampling is with or without replacement. My current prejudice based on my taste, background and little information.)

  8. josef-pkt commented on Jan 7, 2017

    @josef-pkt
    MemberAuthor

    A related quote from
    Bhattacharya, Debopam. 2005. “Asymptotic Inference from Multi-Stage Samples.” Journal of Econometrics 126 (1): 145–71. doi:10.1016/j.jeconom.2004.01.002.

    """
    Historically, effects of sample design on estimation were analyzed in the sample
    survey literature (e.g. Cochran, 1977) in statistics since the mid-1960s. This literature
    is concerned exclusively with the estimation of population means and its exact finite
    sample distribution theory (assuming finite populations and using combinatorial
    methods) becomes unwieldy for more complex parameters like the population
    median for which one has to keep track of stratum and cluster identities of the
    ordered observations. Asymptotic analysis provides an elegant alternative which is
    applicable to a much larger class of estimation problems and provides reasonably
    accurate approximation to the exact finite sample results when large sample sizes are
    available (as is frequently the case for real-life large-scale household surveys).
    """

    Bhattacharya 2005 is reference by Wooldridge for the sandwich covariance for multistage sampling including strata and clusters.

  9. josef-pkt commented on Jan 7, 2017

    @josef-pkt
    MemberAuthor

    estimating equations "generic" theory

    Godambe Thompson have a chapter in handbook of statistics 29B

    Fuller 2009 book, section 1.3.4, has the basic theorems and proof for asymptotic distribution including sandwich form that has a Horviz Thompson estimator of the moment condition variance in the center.

    Bhattacharya 2005 has a derivation and theorem in the context of GMM (no proof since it is standard GMM)


    Fuller 2009 chapter 2 looks also interesting: regression models with auxiliary information about the population. (I only skimmed a small part)

    Wooldridge also has sections or a chapter on survey sampling in the textbook (that I never looked at)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions