ngreifer / WeightIt

WeightIt: an R package for propensity score weighting
https://ngreifer.github.io/WeightIt/
102 stars 12 forks source link

possible issue #47

Closed chumbleycode closed 10 months ago

chumbleycode commented 1 year ago

possible issue - odd error - when calling with estimand ATC

 multiarm <- WeightIt::weightit(X~ Z+ K, 
+                                  data = datall,
+                                  method = "ebal", 
+                                  estimand = "ATC", focal = "4")

Error in sweep(covs, 2, targets, check.margin = FALSE) : object 'targets' not found

ngreifer commented 1 year ago

Yup, you're right, that's a bug! To fix it, just set estimand = "ATT".

chumbleycode commented 1 year ago

Thought so. Just thought I’d let you know anyway, all the best, Justin.

Sent from Proton Mail for iOS

On Mon, May 15, 2023 at 17:39, Noah Greifer @.***(mailto:On Mon, May 15, 2023 at 17:39, Noah Greifer < wrote:

Yup, you're right, that's a bug! To fix it, just set estimand = "ATT".

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>