Skip to content

Supplying user-created weights to adjustedcif with method=iptw? #20

Description

@cegepi

Thank you for your terrific work with this package; it is incredibly helpful and thorough! Was delighted when I found this package.

My question pertains to the adjustedcif function when one is using method=iptw. Is there any way to pass a vector of weights instead of a model to the treatment_model argument? This would be similar to the functionality offered by method=iptw for the adjustedsurv function. Asking because it would be great to estimate weights outside of the package and then just supply the user-created weights to the treatment_model argument of adjustedcif.

Reasons for wanting to externally generate weights: ability to try different packages for weight creation (WeightIt versus PSWeight), trim weights, assess covariate balance, etc.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions