Description Usage Arguments Details Value References See Also Examples
Given a logistic regression model, generate the propensity weights for the subjects (rows) in the data set and report the descriptive statistics for each predictor in the regression model.
1 2 3 4  | 
x | 
 a regression object with class   | 
... | 
 ignored  | 
formula | 
 a regression formula of the form   | 
data | 
 a   | 
ps | 
 the bare column name in   | 
The regression model is expected to estimate the probability of an exposure (Z = 1) given a set of predictors, X, i.e., Pr[Z = 1 | X].
NOTE: for binary predictors coded as 0/1, such as male, the default action of
dstats will return a mean (sd), that is, if the formula for the
regression model is of the form
y ~ male, dstats will summarize the variable male as if it
was continous predictor. To get the summary of the proportion of males, and
females will be reported too, use a regression formula of the form y ~
factor(male).
See psweights for details on the propensity score based weights
used by dstats.
A pstools_dstats object which is a
data.frame, with descriptive statistics for each variable in and out
of the exposure group.
Li, Liang, and Tom Greene. "A weighting analogue to pair matching in propensity score analysis." The international journal of biostatistics 9.2 (2013): 215-234.
glm for fitting logistic regression models, or 
geeglm for fitting GEEs.
psweights for the weights.
1 2 3 4 5  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.