anovaNP {jmv}R Documentation

One Way ANOVA (Non-parametric)

Description

Kruskal-Wallis

Usage

anovaNP(data, deps, group, pairs = FALSE)

Arguments

data

the data as a data frame

deps

a string naming the dependent variable in data

group

a string naming the grouping or independent variable in data

pairs

TRUE or FALSE (default), perform pairwise comparisons

Value

A results object containing:

results$table a table of the test results
results$comparisons an array of pairwise comparison tables

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

results$table$asDF

as.data.frame(results$table)

Examples

data('ToothGrowth')

anovaNP(ToothGrowth, deps = 'len', group = 'dose')

#
#  ONE-WAY ANOVA (NON-PARAMETRIC)
#
#  Kruskal-Wallis
#  -------------------------------
#           X²      df    p
#  -------------------------------
#    len    40.7     2    < .001
#  -------------------------------
#


[Package jmv version 0.9.2.0 Index]