report icon indicating copy to clipboard operation
report copied to clipboard

function F_apa for var.test

Open spressi opened this issue 4 years ago • 2 comments

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="")
}

spressi avatar Mar 21 '22 11:03 spressi

@mattansb what could var.test() return for model_info()?

strengejacke avatar Mar 21 '22 11:03 strengejacke

Looking at the available slots - nothing seems applicable...

mattansb avatar Mar 21 '22 12:03 mattansb