| anovaRMNP {jmv} | R Documentation |
Friedman
anovaRMNP(data, measures, pairs = FALSE, desc = FALSE, plots = FALSE, plotType = "means")
data |
the data as a data frame |
measures |
a vector of strings naming the repeated measures variables |
pairs |
|
desc |
|
plots |
|
plotType |
|
A results object containing:
results$table | a table of the Friedman test results | ||||
results$comp | a table of the pairwise comparisons | ||||
results$desc | a table containing the descriptives | ||||
results$plot | a descriptives plot | ||||
Tables can be converted to data frames with asDF or as.data.frame. For example:
results$table$asDF
as.data.frame(results$table)
data('bugs', package = 'jmv')
anovaRMNP(bugs, measures = c('LDLF', 'LDHF', 'HDLF', 'HDHF'))
#
# REPEATED MEASURES ANOVA (NON-PARAMETRIC)
#
# Friedman
# ------------------------
# X² df p
# ------------------------
# 55.8 3 < .001
# ------------------------
#