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

Support for Afex anova objects #267

Open
willbowditch opened this issue May 23, 2016 · 2 comments
Open

Support for Afex anova objects #267

willbowditch opened this issue May 23, 2016 · 2 comments

Comments

@willbowditch
Copy link

willbowditch commented May 23, 2016

Afex objects aren't supported at the moment. I've got around this myself with a quick method function, but adding support for captions etc may be good for wider community.

Example:

require(afex)
require(pander)
data(md_12.1)

output<-
  aov_ez("id", "rt", md_12.1, within = c("angle", "noise"))


pander.afex_aov <- function(x, ...) {
  res <- as.data.frame(nice(x))
  pandoc.table(res)
}

pander(output)

returns:

---------------------------------------------------------
  Effect        df        MSE       F      ges   p.value 
----------- ----------- ------- --------- ----- ---------
   angle    1.92, 17.31 3702.02 40.72 ***  .39   <.0001  

   noise       1, 9     8460.00 33.77 ***  .39    .0003  

angle:noise 1.81, 16.27 1283.22 45.31 ***  .19   <.0001  
---------------------------------------------------------
@daroczig
Copy link
Member

Can you please review this example? I'm not sure what is a.

@willbowditch
Copy link
Author

@daroczig Corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants