Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function F_apa for var.test #14

Open
spressi opened this issue Mar 22, 2022 · 0 comments
Open

function F_apa for var.test #14

spressi opened this issue Mar 22, 2022 · 0 comments

Comments

@spressi
Copy link

spressi commented Mar 22, 2022

When being confronted with ceiling or floor effects, comparison of variances are a good first clue (variance gets restricted). Thus, it would be nice to have an APA output for calls to functions like var.test.

Here is a first crude approach for simple console output:

F_apa = function(f.test) {
  cat("F(", paste(f.test$parameter, collapse=", "), ") = ", f.test$statistic %>% signif(3),   
  ", p ", ifelse(f.test$p.value < .001, "< .001", paste0("= ", f.test$p.value %>% signif(3))), "\n", sep="")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant