Closed fboeingmessing closed 1 month ago
Dear Florian, thank you for bringing this to our attention. It is correct that you receive an error here, because your hypothesis does not conform to the syntax requirements. It should probably break in a more informative manner, though, and we will include more ubiquitous references to the syntax in the function documentation. Please check the syntax requirements here: https://cran.r-project.org/web/packages/bain/vignettes/Introduction_to_bain.html
@jomulder can you please ensure that the bain:::parse_hypothesis syntax is adequately referenced in the package documentation, and that bartlett_test()
labels factor levels the same way lm()
does, i.e.:
paste0(varname, levels(varname))
instead of just using levels(varname)
Will check. Thanks.
I recently encountered an error when using
BF()
for testing variances. The following code illustrates the problem:I get the following error message when I run this code:
Apparently, the problem is that the
hypothesis
contains only numbers, because the error disappears if I introduce a letter in the labels of the levels and thus thehypothesis
: