I'm so happy to announce version 2.0.0 of my #Rstats package WeightIt is out on CRAN! New features: censoring weights, multilevel propensity scores, improved weights for continuous treatments, bias-reduced ordinal and multinomial models, M-estimation in subgroups Check out the website below!
Публикация
3 прямых ответов · 12 сообщений
On top of this are many, many bug fixes and a dramatically expanded testing suite. See the full list here: ngreifer.github.io/WeightIt/new... I'll discuss the major new features below.
- Censoring weights WeightIt now supports the estimation of censoring weights, as part of a point or longitudinal treatment. To identify that a variable is a censoring indicator, its model formula should have the .cens() marker, e.g., .cens(C) ~ X1 + X2. M-estimation SEs are supported!
- Multilevel PS Propensity scores can be estimated incorporating random effects to model, e.g., students nested within schools. The model formula is passed to lme4::glmer(). All treatment types are supported, as are BART-propensity scores with random effects through the stan4bart package.
I hope you find these updates to WeightIt useful! If you have any comments, feature requests, or bug reports, please get in touch! #Rstats #Statssky #EpiSky #Causalinference
Yup! It doesn't accept svydesign objects, but you can supply sampling to weights to almost all weighting methods via the `s.weights` argument to weightit(), and you can adjust for clustering in the outcome models using the `cluster` argument to, e.g., glm_weightit(). See here:
Estimating Effects After Weightingngreifer.github.io