## Example 1
data(chocolates)
resdecat<-decat(sensochoc, formul = "~Product+Panelist", firstvar = 5,
graph = FALSE)
resaverage<-averagetable(sensochoc, formul = "~Product+Panelist",
firstvar = 5)
resaverage.sort = resaverage[rownames(magicsort(resdecat$tabT)),
colnames(magicsort(resdecat$tabT))]
coltable(resaverage.sort, magicsort(resdecat$tabT),
level.lower = -1.96, level.upper = 1.96,
main.title = "Average by chocolate")
## Example 3
if (FALSE) {
data(chocolates)
resperf<-paneliperf(sensochoc,
formul = "~Product+Panelist+Product:Panelist",
formul.j = "~Product", col.j = 1, firstvar = 5, lastvar = 12,
synthesis = FALSE, graph = FALSE)
resperfprob<-magicsort(resperf$prob.ind, method = "median")
coltable(resperfprob, level.lower = 0.05, level.upper = 1,
main.title = "P-value of the F-test (by panelist)")
resperfr2<-magicsort(resperf$r2.ind, method = "median",
ascending = FALSE)
coltable(resperfr2, level.lower = 0.00, level.upper = 0.85,
main.title = "Adjusted R-square (by panelist)")
}
Run the code above in your browser using DataLab