View source: R/ranef_mle_regressions_repeated_measures.R
Repeated measures anova | R Documentation |
Repeated measures anova.
rm.anova(y, logged = FALSE)
y |
A matrix with the data, where each column refers to a different measurement. The rows denote the subjects. |
logged |
Should the p-values be returned (FALSE) or their logarithm (TRUE)? |
Found in Davis (2002) is the usual repeated measures ANOVA. In this case, suppose you have taken measurements on one or more variables from the same group of people. See the example below on how to put such data.
A vector with the test statistic (t-test) and its associated p-value.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
Charles S. Davis (2002). Statistical methods for the analysis of repeated measures. Springer-Verlag, New York.
rm.anovas, rint.reg, varcomps.mle
y <- c(74.5,81.5,83.6,68.6,73.1,79.4,
75.5,84.6,70.6,87.3,73.0,75.0,
68.9,71.6,55.9,61.9,60.5,61.8,
57.0,61.3,54.1,59.2,56.6,58.8,
78.3,84.9,64.0,62.2,60.1,78.7,
54.0,62.8,63.0,58.0,56.0,51.5,
72.5,68.3,67.8,71.5,65.0,67.7,
80.8,89.9,83.2,83.0,85.7,79.6)
y <- matrix(y, ncol = 6, byrow = TRUE)
res<-rm.anova(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.