![]() ![]() ![]() Three splitted tables on a word doc containing:ĪNOVA measures, ranging from the first to the eighth column I kindly ask some suggestions for reporting results adopting this two visualizing methods Mutate(ANOVA = map(data, ~fAddANOVA(.x))) %>% (COND)) %>% as_tibble()Īnd here the commands to explore ANOVA statistics aov_stats % group_by(signals) %>% Here the function which ANOVA test has been implemented fAddANOVA = function(data) data %>%ĮzANOVA(dv =. I do think that, in the long run, using Latex in RMarkdown is probably the best way to go if you want to create publication quality tables.I would like to export tables for the following result for a repeated measure anova: NOTE: There are different modifications you'd need to make in order to get a functioning Latex table. If you want the values side by side, here is a sort of hacky way to get it done. Pack_rows(., "Petal Width", 3, 4) # groups rows with label Pack_rows(., "Sepal Length", 1, 2) %>% # groups rows with label Kable_styling(bootstrap_options = "striped", full_width = F) %>% Row.names(anova_results) % kable("html", digits=2) %>% # Convert ANOVA results into dataframes allows for easier name manipulation ![]() Here is an excellent tutorial on HTML and Latex usage.īelow is an example of how to create an html table. I'd recommend looking into library(kableExtra) if you're interested in generating HTML and Latex tables regularly. ![]() I played around with xtable, pixiedust and export packages, but wasn't able to get the results I want. I know there are very nice solutions out there using LaTeX, but due to coauthors these are completely out of the question, unfortunately. # but without the distinguishing dependent variablesĪs I will have to do that with many more models over and over again, I'd like there to be as little post-processing in Word as possible. # when I do this, I only get the same two tables underneath each other with their columnwise headers, Write.csv(as.ame(table), file = "iris2.csv") but that yields 2 separated tables and they can't be distinguished by dependent variables etc Stargazer(a1, a2, type = "html", out ="iris2.html") # trying a similar joint table for anova type output: # which yields a nice table with models side by side, including dependent variable names for each model Stargazer(lm1, lm2, type = "html", out ="iris.html") # what I usually do for regression outputs: Summary(lm2) # long format (regression type output)Ī2 <- Anova(lm2) # short format (anova type output, which I need) Lm2 <- lm(Petal.Width ~ Species, data = iris) Lm1 <- lm(Sepal.Length ~ Species, data = iris) Code looks somewhat like that: head(iris) I am trying to get a nice publication-ready output of several anovas, in a similar fashion to what I usually do for regression tables. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |