You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/weightit2energy.R
+76-21Lines changed: 76 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@
72
72
#' \item{`moments`}{`integer`; the highest power of each covariate to be balanced. For example, if `moments = 3`, each covariate, its square, and its cube will be balanced. Can also be a named vector with a value for each covariate (e.g., `moments = c(x1 = 2, x2 = 4)`). Values greater than 1 for categorical covariates are ignored. Default is 0 to impose no constraint on balance.}
73
73
#' \item{`int`}{`logical`; whether first-order interactions of the covariates are to be balanced. Default is `FALSE`.}
74
74
#' \item{`tols`}{when `moments` is positive, a number corresponding to the maximum allowed standardized mean difference (for binary and multi-category treatments) or treatment-covariate correlation (for continuous treatments) allowed. Default is 0. Ignored when `moments = 0`.}
75
+
#' \item{`min.w`}{the minimum allowable weight. Negative values (including `-Inf`) are allowed. Default is `1e-8`.}
75
76
#' }
76
77
#'
77
78
#' For binary and multi-category treatments, the following additional arguments can be specified:
@@ -116,7 +117,7 @@
116
117
#' @details
117
118
#' Energy balancing is a method of estimating weights using
118
119
#' optimization without a propensity score. The weights are the solution to a
119
-
#' constrain quadratic optimization problem where the objective function
120
+
#' constrained quadratic optimization problem where the objective function
120
121
#' concerns covariate balance as measured by the energy distance and (for
121
122
#' continuous treatments) the distance covariance.
0 commit comments