I came upon this trying to implement things for @jomulder in JASP. It seems the way some arguments are passed in t_test() (
|
var_eq <- cl[["var.equal"]] |
) does not allow any statements that need "evaluation". My example:
dt <- read.csv("https://raw.githubusercontent.com/jasp-stats/jasp-desktop/development/Resources/Data%20Sets/debug.csv")
options <- list(variances = "equal")
bain::t_test(dt$contNormal, dt$contBinom, var.equal = options[["variances"]] == "equal")
varEqual <- options[["variances"]] == "equal"
bain::t_test(dt$contNormal, dt$contBinom, var.equal = varEqual)
neither of the two ways to pass a boolean to the function works. I think it should.
I came upon this trying to implement things for @jomulder in JASP. It seems the way some arguments are passed in t_test() (
bain/R/t_test_wrapper.R
Line 70 in 6c4eeaa
neither of the two ways to pass a boolean to the function works. I think it should.