# suppress the warnings and other messages from showing in the knitted file. knitr::opts_chunk$set(fig.width = 7, fig.height = 5, fig.path = "figures/", echo = TRUE, warning = FALSE, message = FALSE) devtools::source_gist("8e6e5dc401e3fc1042ef7a030f9d19c7", filename = "revised_toc.R")
if (!require(easiOrigin)) { if (!require(remotes)) install.packages("remotes") remotes::install_github("cwendorf/easiOrigin") } library(easiOrigin)
This vignette analyzes data from a two-factor mixed design.
thisfile <- knitr::current_input() revised_toc(thisfile, base_level = 3, toc_depth = 4)
Factor <- c(1, 1, 1, 1, 2, 2, 2, 2) Outcome1 <- c(0, 0, 3, 5, 1, 3, 6, 6) Outcome2 <- c(4, 7, 4, 9, 3, 1, 6, 6) Outcome3 <- c(4, 9, 6, 9, 3, 3, 6, 8) Factor <- factor(Factor, levels = c(1, 2), labels = c("Level1", "Level2")) MixedData <- data.frame(Factor, Outcome1, Outcome2, Outcome3) MixedData
descMeansBy(cbind(Outcome1, Outcome2, Outcome3), by = Factor)
ciMeansBy(cbind(Outcome1, Outcome2, Outcome3), by = Factor) ciMeansBy(cbind(Outcome1, Outcome2, Outcome3), by = Factor, conf.level = .99)
nhstMeansBy(cbind(Outcome1, Outcome2, Outcome3), by = Factor) nhstMeansBy(cbind(Outcome1, Outcome2, Outcome3), by = Factor, mu = 5)
descMultifactor(cbind(Outcome1, Outcome2, Outcome3), by = Factor)
nhstMultifactor(cbind(Outcome1, Outcome2, Outcome3), by = Factor)
pvaMultifactor(cbind(Outcome1, Outcome2, Outcome3), by = Factor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.