r-causal / propensity

A Toolkit for Calculating and Working with Propensity Scores
https://r-causal.github.io/propensity/
Other
16 stars 5 forks source link

Add classes to `wt_()` returns #3

Closed malcolmbarrett closed 1 year ago

malcolmbarrett commented 1 year ago

important weights class from tidymodels + a class to indicate the type of weight, e.g. ato_weight, which can help us indicate which sandwich estimator to fit

cc @simonpcouch because this idea came from your code. In other words, we can move the step of indicating this is a weight we can use in tidymodels to propensity

simonpcouch commented 1 year ago

Stoked to hear you're motivated to tighten that integration. :)

Wanted to note that our current drafts of machinery introducing support for propensity take care of that conversion under the hood.

malcolmbarrett commented 1 year ago

Cool, I think that will work a bit better since the importance weights class object turned out to be difficult to work with in other ways we use them