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 specifies weights as an additional argument
- In this case, the user can be asked to specify a placeholder in the formula, like
outcome | exposure ~ anything | group. The propensity_formula=exposure~anything will never be called.
- The
weights argument 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()
-
model_method='user' and user includes the weights as a term in the data argument, and then specifies this with the formula method.
- This may be a little cleaner, because the user would need only to provide
formula= outcome | exposure ~ prop_score | group where prop_score is the column name in data that 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
I guess I'm leaning towards approach 2 here. Does that sound good to you?
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 argumentoutcome | exposure ~ anything | group. Thepropensity_formula=exposure~anythingwill never be called.weightsargument would get passed into the appropriate functions and naive variance estimation would take place.wght_matrix()model_method='user'and user includes the weights as a term in thedataargument, and then specifies this with theformulamethod.formula= outcome | exposure ~ prop_score | groupwhereprop_scoreis the column name indatathat contains the relevant PS or IPW information.exposure ~ group_prop_score + individual_conditional_probI guess I'm leaning towards approach 2 here. Does that sound good to you?