prefmod-package {prefmod} | R Documentation |
Generates design matrix for analysing paired comparison, Likert type items or ratings, and Rankings for fitting loglinear paired comparison models. Fits LLBT using the eliminate feature. Fits pattern models for paired comparisons, rankings, and ratings.
Package: | prefmod |
Type: | Package |
Version: | 0.0-7 |
Date: | 2008-05-28 |
Depends: | stats |
License: | GPL |
Index:
cemspc Data: CEMS dat4 Data: dat4 issp2000 Data: ISSP 2000 Survey on Environmental Issues llbt.design Loglinear Bradley-Terry Model (LLBT) - Design Matrix Generation llbt.fit Function to fit an LLBT baseball Data: Baseball Games music Data: Music (Music (General social survey) patt.design Paired Comparison Patterns - Design Matrix Generation pattL.fit Function to fit a pattern model for ratings (Likert items) pattPC.fit Function to fit a pattern model for paired comparisons pattR.fit Function to fit a pattern model for rankings salad Data: Salad Dressings (Critchlow and Fligner) xmpl Data: Example Data Set
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)