Skip to content

User-provided propensity scores? #19

@BarkleyBG

Description

@BarkleyBG

A user may want to provide propensity scores (estimated by a different method, say). Two options I've thought of for this:

  1. 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()
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions