get.mat.diff.sign: Pairwise comparisons

Description Usage Arguments References See Also Examples

View source: R/tcata.R

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

tempR documentation built on May 29, 2017, 2:50 p.m.