nppbib: Nonparametric Partially-Balanced Incomplete Block Design...

Description Usage Arguments Details Value Author(s) References Examples


Implements a nonparametric statistical test for rank or score data from partially-balanced incomplete block-design experiments.





A character string giving the name of the data file to analyse.


This package implements the nonparametric statistical test for rank or score data from partially-balanced imcomplete block-design experiments described in the paper by DJ Best, JCW Rayner and David Allingham, (Journal of Sensory Studies, 2011). It reads a dataset from a plain-text file and returns a p-value, as well as other values of interest. If the file contains scores, these are converted to ranks for the analysis. Ties are allowed.

Data format:

Each line should list the rank or score for each product tested by that judge, with entries of NA for products that that judge did not test. The number of lines is, therefore, equal to the number of judges, and the number of columns is equal to the number of products.

Comments (starting with \#) are allowed (both on their own lines and at the end of lines of data).

Currently there are no error checks on the format. Users should examine the values of Njudges, Nproducts and Nperjudgement in the output to ensure that they are as expected.



the number of judges in the data file (number of data lines).


the number of products tested (number of data columns).


the number of products that each judge considered.


a matrix containing the data that was read from the input file (ranks or scores).


a matrix containing the ranked data.


the variance-covariance matrix of the ranked data.


the adjusted sum of ranks of the products, also called the product effects.


the Skilling-Mack test statistic computed from the ranked data.


the p-value for the null hypothesis that there exist no pairwise differences between products.


Allingham, David

Best, D.J.


“A Statistical Test for Ranking Data from Partially-Balanced Incomplete Block Designs”, Best, D.J., Rayner, J.C.W. and Allingham, David. Journal of Sensory Studies, 26(1): 81–84, 2011.


 # Analyse the sample data set provided with this package:
 nppbib(system.file('extdata', 'sm6.txt', package='nppbib'))

nppbib documentation built on Sept. 1, 2020, 5:08 p.m.

Related to nppbib in nppbib...