Pairwise comparisons

Share:

Description

p-value for pairwise comparisons.

Usage

1
get.mat.diff.sign(x = x, y = y, n.x = n.x, n.y = n.x, test.type = "f")

Arguments

x

citations for product x

y

citations for product y

n.x

total observations for x

n.y

total observations for y

test.type

So far only Fisher's exact test is implemented ("f")

References

Castura, J. C., AntĂșnez, L., GimĂ©nez, A., Ares, G. (2016). Temporal Check-All-That-Apply (TCATA): A Novel Temporal Sensory Method for Characterizing Products. Food Quality and Preference, 47, 79-90. http://dx.doi.org/10.1016/j.foodqual.2015.06.017

See Also

fisher.test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Toy TCATA citations data for two samples: s1, s2
s1 <- t(data.frame(sweet =  c(10, 23, 25, 26, 26, 43, 44),
                   bitter = c( 4, 18, 19, 27, 36, 43, 54),
                   sour = c(40, 53, 85, 70, 46, 33, 24)))
s2 <- t(data.frame(sweet = c(11, 33, 45, 46, 56, 43, 44),
                   bitter = c( 0, 11, 11, 14, 25, 35, 34),
                   sour = c(30, 33, 35, 20, 26, 23, 24)))
colnames(s1) <- colnames(s2) <- paste0("time_", seq(5, 35, by = 5), "s")
n <- 90
signif <- get.mat.diff.sign(s1, s2, n, n)
signif

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.