Description Usage Arguments Details Value Author(s) References See Also Examples
This function computes Bayes Factors and p-values for within-subjects ANOVA designs, encoded as fp objects.
1 |
object |
a list of objects from class fp1. |
stat |
Either "BF" (default), "p", or "both", specificying what statistic to report. |
na.rm |
Are |
The function expects the output of fpGet
, but in a list.
A list containing the results of either the Bayesian or frequentist analysis, or both:
BF |
The output of |
p |
The output of |
Leendert van Maanen (l.vanmaanen@uva.nl)
Van Maanen, L. & Van Rijn, H (submitted). The fixed-point property in concurrent processing. Manuscript submitted for publication
1 2 3 4 5 6 7 8 9 10 | ## generate data
p <- c(.1,.5,.9)
rt <- sapply(1:3, function(i) {rnormMix(10000, c(1,2), c(1,1), p[i])})
dat <- data.frame(rt=c(rt), cond=rep(1:3, each=10000), pp=rep(1:50, each=200, times=3))
## compute the list of fp1 objects
res <- tapply(1:nrow(dat), dat$pp, function(X) {fpGet(dat[X,], 1000, bw=.75)})
## call fpAnova, with stat="both" to do both a Bayesian and a frequentist test
fpAnova(res, stat="both")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.