Skip to content

Commit 31b4a85

Browse files
committed
Adding missing .data$
1 parent e0b7201 commit 31b4a85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/PsFunctions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ trimByPs <- function(population, trimByPsArgs = createTrimByPsArgs(trimFraction
774774

775775
if (trimByPsArgs$trimMethod == "symmetric"){
776776
population <- population |>
777-
filter(propensityScore > trimByPsArgs$trimFraction,
778-
propensityScore < (1 - trimByPsArgs$trimFraction))
777+
filter(.data$propensityScore > trimByPsArgs$trimFraction,
778+
.data$propensityScore < (1 - trimByPsArgs$trimFraction))
779779
} else if (trimByPsArgs$trimMethod == "asymmetric"){
780780
cutoffTarget <- quantile(population$propensityScore[population$treatment == 1],
781781
trimByPsArgs$trimFraction)

0 commit comments

Comments
 (0)