prefmod-package {prefmod} | R Documentation |
Generates design matrix for analysing real paired comparisons and derived paired comparison data (Likert type items / ratings or rankings) using a loglinear approach. Fits loglinear Bradley-Terry model (LLBT) exploting an eliminate feature. Computes pattern models for paired comparisons, rankings, and ratings. Some treatment of missing values (MCAR and MNAR).
Package: | prefmod |
Type: | Package |
Version: | 0.8-13 |
Date: | 2008-12-11 |
Depends: | stats |
License: | GPL |
Reinhold Hatzinger
Maintainer: Reinhold Hatzinger <reinhold.hatzinger@wu-wien.ac.at>
## mini example with three Likert items ## and two subject covariates data(xmpl) # example data in package dsgnmat <- patt.design(xmpl, nitems = 3, resptype="rating", blnIntcovs = TRUE, cov.sel="ALL") print(head(dsgnmat)) ## fit of Critchlov & Fligner (1991) Salad Dressings Data data(salad) pattR.fit(salad, nitems=4) # alternatively use glm() with patt.design() sal<-patt.design(salad,nitems=4,resptype="ranking") glm(y~A+B+C+D,family=poisson,data=sal)