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
The subset.xbal function takes a naive approach to selecting variables and groups. Variable selection only changes the $results array and group selection only applies to the $groups array. A proper implementation should interact the two, such that when selecting variables, only groups that include those variables are returned. Likewise, when selecting groups, only the variables in those groups are returned.
For example
xb <- xBalance(Z ~ X + Y + Z, data = d, groups = ("XY" = c("X", "Y")))
dimnames(select(xb, groups = c("XY"))$results)[[1]]
Should be c("X", "Y") (i.e., the variable Z is dropped).
The text was updated successfully, but these errors were encountered:
The
subset.xbal
function takes a naive approach to selecting variables and groups. Variable selection only changes the$results
array and group selection only applies to the$groups
array. A proper implementation should interact the two, such that when selecting variables, only groups that include those variables are returned. Likewise, when selecting groups, only the variables in those groups are returned.For example
Should be
c("X", "Y")
(i.e., the variableZ
is dropped).The text was updated successfully, but these errors were encountered: