Generate Stabilized Weights Using ds.glmSLMA output and outcome proportions.
Source:R/stablised-weights.R
dh.stablisedWeights.Rd
This calculates stablised inverse probability weights. Currently only works with a binary outcome variable.
Usage
dh.stablisedWeights(
glm_object = NULL,
responder_df = NULL,
responder_var = NULL,
non_responder_level,
responder_level,
new_obj = NULL,
conns = NULL
)
Arguments
- glm_object
A fitted ds.glmSLMA object.
- responder_df
A serverside data frame containing the responder variable.
- responder_var
Character vector of outcome variable within
responder_df
.- non_responder_level
Character vector indicating level of
responder_var
corresponding to non-responders.- responder_level
Character vector indicating level of
responder_var
corresponding to responders.- new_obj
A character string for the name of the new object to store stabilized weights.
- conns
DataSHIELD connections object.