Propensity score based on a multivariate logistic regression with LASSO penalization on the two-way interactions
Usage
glm.ps(
trt,
x.ps,
xnew = NULL,
minPS = 0.01,
maxPS = 0.99,
solver = c("C", "R"),
return.raw = FALSE
)Arguments
- trt
Treatment received; vector of size
n(observations) with treatment coded as 0/1- x.ps
Matrix of
p.psbaseline covariates (plus a leading column of 1 for the intercept); dimensionnbyp.ps + 1(covariates in the treatment model plus intercept)- xnew
Matrix of
p.psbaseline covariates (plus a leading column of 1 for the intercept) for which we want propensity scores predictions; dimensionm(observations in the new data set) byp.ps + 1- minPS
A numerical value (in `[0, 1]`) below which estimated propensity scores should be truncated. Default is
0.01.- maxPS
A numerical value (in `(0, 1]`) above which estimated propensity scores should be truncated. Must be strictly greater than
minPS. Default is0.99.- solver
Interaction-screening backend:
"C"(default) or"R". C screens pairs before allocating retained training and prediction columns. Both use the strict SMD > 0.1 rule and positive sample variance.- return.raw
Internal: attach untruncated scores for diagnostics.

