Description Usage Arguments Details See Also
The matchit function wraps all steps for a matchit analysis: 1) data prep, if a wide table is provided. 2) logistic regression 3) propensity score matching 4) matchit All steps are done in-database with DB Lytix.
1 2 |
formula |
This argument takes the usual syntax of R formula, ‘treat ~ x1 + x2’, where ‘treat’ is a binary treatment indicator and ‘x1’ and ‘x2’ are the pre-treatment covariates. Both the treatment indicator and pre-treatment covariates must be contained in the same data frame, which is specified as ‘data’ (see below). No operators in formulas are currently supported in AdapteR. |
data |
This argument specifies the data frame containing the variables called in ‘formula’. Either a FLTable or prepared data in a deep table. |
method |
(for API compatibility with MatchIt, must be nearest) |
distance |
(for API compatibility with MatchIt, must be logit) |
distance.options |
(for API compatibility with MatchIt, ignored) |
discard |
(for API compatibility with MatchIt, must be none) |
reestimate |
(for API compatibility with MatchIt, not supported) |
... |
additional arguments. Can be the following:
|
The function returns a list with the logistic regression model, a FLSimpleVector with the propensities FLSimpleVector with discarded obsids, and a closure function whereClause for restricting a FLTable or FLVector to the matched set for further statistical analyses.
matchit
for R reference
implementation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.