fitanova: Run ANOVA analysis

Description Usage Arguments Value See Also Examples

Description

Given a dataset xd, calculates F1, F2, F'min, and F1+F2, and associated p-values (one-factor design only).

Usage

1
fitanova(mcr.data, wsbi)

Arguments

mcr.data

A dataframe formatted as described in mkDf.

wsbi

Whether the design is between-items (TRUE) or within-items (FALSE).

Value

A vector, with:

F1

the by-subjects F value

F2

the by-items F value

minF

the min F' value

p1

the p-value associated with F1

p2

the p-value associated with F2

pmf

the p-value associated with min F'

pmax

the p-value associated with F1+F2 ( =max(c(p1,p2)) )

See Also

mkDf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
nmc <- 10
pmx <- cbind(randParams(genParamRanges(), nmc, 1001), seed=mkSeeds(nmc, 1001))

# between-items dataset
x.bi <- mkDf(nsubj=24, nitem=24, mcr.params=pmx[1,], wsbi=TRUE)

# within-items dataset
x.wi <- mkDf(nsubj=24, nitem=24, mcr.params=pmx[1,], wsbi=FALSE)

fitanova(x.bi, wsbi=TRUE)
fitanova(x.wi, wsbi=FALSE)

dalejbarr/simgen documentation built on May 14, 2019, 3:32 p.m.