-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
A user may want to provide propensity scores (estimated by a different method, say). Two options I've thought of for this:
-
model_method='user'and user specifiesweightsas an additional argument- In this case, the user can be asked to specify a placeholder in the formula, like
outcome | exposure ~ anything | group. Thepropensity_formula=exposure~anythingwill never be called. - The
weightsargument would get passed into the appropriate functions and naive variance estimation would take place. - A downside would be that the weights may need to be in correct form. Of course, a helper function could easily be written from
wght_matrix()
- In this case, the user can be asked to specify a placeholder in the formula, like
-
model_method='user'and user includes the weights as a term in thedataargument, and then specifies this with theformulamethod.- This may be a little cleaner, because the user would need only to provide
formula= outcome | exposure ~ prop_score | groupwhereprop_scoreis the column name indatathat contains the relevant PS or IPW information. - A downside to this approach is the cluster propensity scores are invariant for all individuals in the group, so this is a slight copying of information
- An upside of this approach is it may be easier to implement with Hajek-style IPW (future work), as you could specify
exposure ~ group_prop_score + individual_conditional_prob
- This may be a little cleaner, because the user would need only to provide
I guess I'm leaning towards approach 2 here. Does that sound good to you?
Metadata
Metadata
Assignees
Labels
No labels