permutation: Permutation for HDANOVA

View source: R/permutation.R

permutationR Documentation

Permutation for HDANOVA

Description

Permutation testing for HDANOVA. This function performes permutation testing for the effects in the HDANOVA model and adds them to the hdanova object.

Usage

permutation(object, permute = 1000, perm.type = c("approximate", "exact"))

Arguments

object

A hdanova object.

permute

Number of permutations to perform (default = 1000).

perm.type

Type of permutation to perform, either "approximate" or "exact" (default = "approximate").

Value

An updated hdanova object with permutation results.

Examples

# Load candies data
data(candies)

# Basic HDANOVA model with two factors
mod <- hdanova(assessment ~ candy + assessor, data=candies)
mod <- permutation(mod)
summary(mod)


HDANOVA documentation built on April 12, 2025, 2:16 a.m.