Description Usage Arguments Value
View source: R/parse_formula.R
This function takes nonstandard formulas as inputs and returns regular formulas
as well as lists of weights to be used in generate_constraints()
.
1 | parse_formula(balance_formula, default_rhs = NULL, data = NULL)
|
balance_formula |
a formula that may have multiple terms on the left hand side, "." on the left hand side, and coefficients, making it not a standard formula. |
default_rhs |
the list of |
data |
a data frame containing the relevant covariates in the columns. The number
of rows should equal the length of |
A named list containing new_formula
: the standard formula to be used
in generate_constraints
, rhs_weights
: a named list with the
coefficients of the terms on the right hand side, and lhs_weights
:
a named list with coefficients of the terms on the left hand side.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.