| PSmethod_sga | R Documentation |
The function PSmethod_sga is an internal function to estimate the propensity scores given a specified model through formula.
It is built into function Sumstat_sga, and PSweight_sga.
PSmethod_sga( ps.formula = ps.formula, method = "glm", weight = "overlap", data = data )
ps.formula |
an object of class |
method |
a character to specify the method for propensity model. When |
weight |
a character or vector of characters including the types of weights to be used. |
data |
a data frame containing the variables in the propensity score model. |
A typical form for ps.formula is treatment ~ terms where treatment is the treatment
variable (identical to the variable name used to specify zname) and terms is a series of terms
which specifies a linear predictor for treatment. ps.formula by default specifies generalized
linear models given the default argument method = "glm". It fits the logistic regression. The argument
method allows user to choose model other than glm to fit the propensity score models. In Yang et al.(2021),
the term is suggested to include all main effects and pairwise subgroup-confounder interactions, combined with
the method="LASSO" to select important interactions. We have included "LASSO" and "gbm",
through the method argument. Note that the current code does not handle multiple treatment groups.
e.ha data frame of estimated propensity scores.
nonzero_coefthe LASSO selected interactions when method = "LASSO".
Yang, S., Lorenzi, E., Papadogeorgou, G., Wojdyla, D. M., Li, F., & Thomas, L. E. (2021). Propensity score weighting for causal subgroup analysis. Statistics in medicine, 40(19), 4294-4309.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.