-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow for ANY as weight type backup for n_mean_var()
#19
Conversation
@malcolmbarrett - thanks for the PR. Happy to discuss the proposal. I hesitate to add support for dispatching on Also, if you want to the |
You can see the type of class I hope to extend this to here r-causal/propensity#10, if it helps give you any ideas. I don't use S4, so maybe there is a better way. But I don't see this being much of an issue in practice because Anyway, thanks for considering. It would help us a lot to be able to be more flexible here |
|
This is a very small perspective into the stability of this change as I think the bigger concern is to direct users, not developers, but reverse dependencies do well with this PR
Of course, your main reverse import is from me 😝 |
@malcolmbarrett - sorry the delay. This seems good. Can you:
Thanks for the contribution! |
Done, thanks! |
Thanks! |
@malcolmbarrett - I'll submit to CRAN in the next few days. |
Much appreciated, @bsaul! No hurry on our end |
FYI - submitted to CRAN. Usually takes a couple of days to show up. |
|
This PR allows for
n_mean_var()
to take a weight of any type as long is it can pass throughas.double()
. Basically, it adds ac("thing", "ANY")
signature for the existing input types. It also treats a conversion warning as an error.The motivation for this PR is to allow for smd to accept weights that are classed vectors. We use it in our causal inference work and some of our tooling will be expanding in this direction