chjackson / msm

The msm R package for continuous-time multi-state modelling of panel data
https://chjackson.github.io/msm/
57 stars 17 forks source link

Questions about using weights in msm package #64

Closed ghost closed 9 months ago

ghost commented 1 year ago

Dear Prof. Jackson,

Thank you for providing the msm package! I am a postgraduate social science student. I am using social survey data and the msm package to analyse health state transition probabilities. I would like to apply social science survey weights to the msm package, but am unsure how to apply it. I was wondering if the package has a function to apply the weights, or some other way to handle it! Thanks again for your work!

Best wishes,

Wanying

chjackson commented 1 year ago

A way to do this is explained in the answer to https://github.com/chjackson/msm/issues/50 .

ghost commented 1 year ago

50 的答案中解释了一种方法。

Thank you very much for your reply!

chjackson commented 11 months ago

Duplicate of #50

chjackson commented 9 months ago

Subject-specific weights are now implemented in https://github.com/chjackson/msm/commit/4e1910d1c5f15f4702e21b77a40a236de456bd63 and subsequent commits.