fpDensDiff: Function to compute the crossing point of two kernel-based...

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function takes a list of fp1 objects, and computes at which point the distributions cross each other.

Usage

1
fpDensDiff(object)

Arguments

object

a list of fp1 objects

Value

An m * n-array containing the crossing points of the pairs of distributions, with n the length of the list of fp1 objects, and m the number of pairs of distributions.

Author(s)

Leendert van Maanen (l.vanmaanen@uva.nl)

References

Van Maanen, L. & Van Rijn, H (submitted). The fixed-point property in concurrent processing. Manuscript submitted for publication.

See Also

fpGet,fpAnova

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)})

## get the crossing points
crosses=fpDensDiff(res)
boxplot(t(crosses), frame.plot=FALSE,xlab="Crossing point", ylab="Condition pair",names=c("1-2","2-3","1-3"), horizontal=TRUE)

JimGrange/Van-Maanen-fp documentation built on May 7, 2019, 10:51 a.m.