Skip to content

Commit

Permalink
Potential Issue #11?
Browse files Browse the repository at this point in the history
  • Loading branch information
SpatLyu committed Oct 25, 2024
1 parent 70bcadd commit b043ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/lesh.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ lesh = \(formula,data,cores = 1,...){
by = c("variable1" = "variable")) %>%
dplyr::left_join(dplyr::select(spd,variable,spd2 = spd_theta),
by = c("variable2" = "variable")) %>%
dplyr::mutate(spd = (spd1 + spd2), spd1 = spd1 / spd, spd2 = spd2 / spd,
dplyr::mutate(spd = (abs(spd1) + abs(spd2)), spd1 = abs(spd1) / spd, spd2 = abs(spd2) / spd,
`Variable1 SPD` = `Variable1 and Variable2 interact Q-statistics`*spd1,
`Variable2 SPD` = `Variable1 and Variable2 interact Q-statistics`*spd2) %>%
dplyr::select(-dplyr::starts_with('spd'))
Expand Down

0 comments on commit b043ee6

Please sign in to comment.