Skip to content

integration of complex survey design effects #138

Open

Description

@syltuder

Hi! I am planning on using this package for my dissertation. I was wondering if you had any plans (or insights) for how I might account for clustering, stratification, and unequal probability of selection/weighting (as in Lumley's survey package) when using msm. Thank you for making this!

Activity

  1. chjackson commented on Oct 23, 2026

    @chjackson
    Owner

    I haven't done much of this, but the package does support subject-specific weights, through the subject.weights argument to msm(). There are no random effects or clustered variance estimators though. It may be possible to get adjusted variances via a "cluster bootstrap" that only resamples clustered data (or some other complex design), calling msm() on each resample, and taking the variance of the estimates over resamples. But I don't have any worked examples of this - you'd have to design the sampler and pool the results by hand.

  2. syltuder commented on Oct 23, 2026

    @syltuder
    Author

    Thank you!!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions