jmv

Repeated Measures ANOVA (Non-parametric)

Friedman

Example usage

data('bugs', package = 'jmv')

anovaRMNP(bugs, measures = c('LDLF', 'LDHF', 'HDLF', 'HDHF'))

#
#  Friedman
#  ────────────────────────
#    χ²      df    p
#  ────────────────────────
#    55.8     3    < .001
#  ────────────────────────
#

Arguments

data the data as a data frame
measures a vector of strings naming the repeated measures variables
pairs TRUE or FALSE (default), perform pairwise comparisons
desc TRUE or FALSE (default), provide descriptive statistics
plots TRUE or FALSE (default), provide a descriptive plot
plotType 'means' (default) or 'medians', the error bars to use in the plot

Returns

A results object containing:

results$table a table
results$comp a table
results$plot an image

Tables can be converted to data frames with asDF or as.data.frame(). For example:

results$table$asDF

as.data.frame(results$table)