C_piBTL {CompR} | R Documentation |
Estimation of Bradley's scores
Description
Returns the Bradley's scores of the different items and the value of the LogLikelihood
Usage
C_piBTL(Matpair, Constraint=0, eps1=1e-04, Pi=NULL, TestPi=FALSE, Zht=NULL)
Arguments
Matpair |
Matrix of the cumulative sum of the results of paired comparisons or object of class |
Constraint |
Kind of constraint on Bradley's scores. If |
eps1 |
value to take into account for the convergence criteria of the algorithm of |
Pi |
Initial values for Bradley's scores. If |
TestPi |
Indicate if the user wants to perform a multiple comparison tests on the Bradley's scores. |
Zht |
Indicate the individuals probabilities to belong to the different classes. |
Details
The algorithm is based on a maximum likelihood approach using Dykstra method.
Value
List of following components:
Pi |
Bradley's scores |
lnL |
value of the log-likelihood |
lvrHO |
value of the log-likelihood under the hypothesis of equal values for the Bradley's scores |
lvrH1 |
value of the log-likelihood at the end of the Bradley's scores estimation algorithm |
lRatio |
value of the likelihood ration statistic |
Pvalue |
Pvalue of the test |
H1 |
logical value, FALSE if Bradley's scores should be considered as equal, TRUE otherwise |
VarcovPi |
Matrix of covariances of Bradley's scores |
restestij |
Matrix of the following elements |
Examples
data(Cocktail_Cum)
res<-C_piBTL(Cocktail_Cum,Constraint=0,eps1=1e-04,Pi=NULL,TestPi=TRUE)
res