alexpkeil1 / qgcomp

QGcomp (quantile g-computation): estimating the effects of exposure mixtures. Works for continuous, binary, and right-censored survival outcomes. Flexible, unconstrained, fast and guided by modern causal inference principles
27 stars 6 forks source link

nhanes weight #32

Closed nkchangshu closed 10 months ago

nkchangshu commented 10 months ago

How should the NHANES weight be handled in the fitting of the qgcomp model? Is there an appropriate parameter that can be used?

alexpkeil1 commented 10 months ago

There is a "weights" parameter that can be used much like the weight argument in glm. You may need to use the bootstrapped version to get appropriate standard errors.

e.g. see documentation: https://rdrr.io/cran/qgcomp/man/qgcomp.glm.noboot.html