debian/0000755000000000000000000000000012146374062007173 5ustar debian/watch0000644000000000000000000000010711373106544010221 0ustar version=3 http://cran.r-project.org/src/contrib/eRm_([-0-9\.]*).tar.gz debian/overrides0000644000000000000000000000005111567005734011117 0ustar r-cran-erm binary: image-file-in-usr-lib debian/rules0000755000000000000000000000071511731355571010261 0ustar #!/usr/bin/make -f # debian/rules file for the Debian/GNU Linux r-cran-* packages # We don't want to include the cdbs patchsys, as we're using source # format 3.0 (quilt). The following line makes cdbs skip trying to # load it (it is included by /usr/share/R/debian/r-cran.mk). _cdbs_rules_patchsys = 1 include /usr/share/R/debian/r-cran.mk # Fix the borken permissions :-( install/r-cran-erm:: chmod a-x debian/r-cran-erm/usr/lib/R/site-library/eRm/doc/* debian/copyright0000644000000000000000000000426511731363507011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: eRm Upstream-Contact: Reinhold Hatzinger Source: http://cran.r-project.org/web/packages/eRm/index.html License: GPL-2 Copyright: 2007 Patrick Mair and Reinhold Hatzinger Comment: The package was renamed from its upstream name 'eRm' to 'r-cran-erm to fit the pattern of Debian CRAN (and non-CRAN) packages for R. Files: * Copyright: 2007 Patrick Mair and Reinhold Hatzinger License: GPL-2 Files: debian/* Copyright: 2010-2012 Julian Gilbey License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/source/0000755000000000000000000000000012130257413010464 5ustar debian/source/format0000644000000000000000000000001411373106544011700 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012130257413010613 5ustar debian/patches/02_plotPWmap-fix-subsetting0000644000000000000000000000514011731363507015743 0ustar --- a/R/plotPWmap.R +++ b/R/plotPWmap.R @@ -86,16 +86,17 @@ stop("item.subset misspecified. Use 'all' or vector of at least two valid item indices/names.") } else { if (length(item.subset)>1 && all(item.subset %in% rownames(as.matrix(tl)))) { - iloc <- iloc[item.subset] - ise <- ise[item.subset] - ifitZ <- ifitZ[item.subset] tl <- tl[item.subset] - + keep.subset <- c() for (i in rownames(as.matrix(tl))) if (tl[i]==1) keep.subset<-c(keep.subset,i) else keep.subset<-c(keep.subset,paste(i,1:tl[i],sep=":")) + + iloc <- iloc[keep.subset] + ise <- ise[keep.subset] + ifitZ <- ifitZ[item.subset] tt<-tt[keep.subset,] } else if(length(item.subset)!=1 || !(item.subset=="all")) @@ -115,16 +116,17 @@ } else { if (length(item.subset)>1 && all(item.subset %in% 1:length(tl))) { - iloc <- iloc[item.subset] - ise <- ise[item.subset] - ifitZ <- ifitZ[item.subset] tl <- tl[item.subset] - + keep.subset <- c() for (i in rownames(as.matrix(tl))) if (tl[i]==1) keep.subset<-c(keep.subset,i) else keep.subset<-c(keep.subset,paste(i,1:tl[i],sep=":")) + + iloc <- iloc[keep.subset] + ise <- ise[keep.subset] + ifitZ <- ifitZ[item.subset] tt<-tt[keep.subset,] } else @@ -255,15 +257,15 @@ zt <- rep(ifitZ,times=tl) if (!horiz){ - if (ici>0) ## draw confidence intervals - arrows(zt,iloc+ici*ise, zt,iloc-ici*ise, angle=90, code=3, length=0.04, - col=itemCI$col, lty=itemCI$lty) - points(zt,iloc,pch=item.pch,cex=cex.pch) - text(zt,iloc,rownames(tt),cex=cex.gen,pos=4) + if (ici>0) ## draw confidence intervals + arrows(zt,iloc+ici*ise, zt,iloc-ici*ise, angle=90, code=3, length=0.04, + col=itemCI$col, lty=itemCI$lty) + points(zt,iloc,pch=item.pch,cex=cex.pch) + text(zt,iloc,rownames(tt),cex=cex.gen,pos=4) } else { - if (ici>0) ## draw confidence intervals - arrows(iloc+ici*ise, zt,iloc-ici*ise,zt, angle=90, code=3, length=0.04, - col=itemCI$col, lty=itemCI$lty) + if (ici>0) ## draw confidence intervals + arrows(iloc+ici*ise, zt,iloc-ici*ise,zt, angle=90, code=3, length=0.04, + col=itemCI$col, lty=itemCI$lty) points(iloc, zt,pch=item.pch,cex=cex.pch) text(iloc,zt, rownames(tt),cex=cex.gen,pos=4) } debian/patches/01_plotPWmap-fix-ranges0000644000000000000000000000171611406065440015031 0ustar --- a/R/plotPWmap.R +++ b/R/plotPWmap.R @@ -182,18 +182,18 @@ ## Now we can plot the Pathway Map if (pmap) { ## person map - xrange.pmap <- range(pfitZ,na.rm=TRUE) + xrange.pmap <- range(pfitZ,finite=TRUE) xrange.pmap[1] <- min(-2.5,xrange.pmap[1]) xrange.pmap[2] <- max(2.5,xrange.pmap[2]+1) ## need space for labels - yrange.pmap<-range(ploc,na.rm=TRUE) + yrange.pmap<-range(ploc,finite=TRUE) yrange.pmap[1]<-yrange.pmap[1]-pci*max(pse) yrange.pmap[2]<-yrange.pmap[2]+pci*max(pse) } if (imap) { ## item map - xrange.imap <- range(ifitZ,na.rm=TRUE) + xrange.imap <- range(ifitZ,finite=TRUE) xrange.imap[1] <- min(-2.5,xrange.imap[1]) xrange.imap[2] <- max(2.5,xrange.imap[2]+1) ## need space for labels - yrange.imap<-range(iloc,na.rm=TRUE) + yrange.imap<-range(iloc,finite=TRUE) yrange.imap[1]<-yrange.imap[1]-ici*max(ise) yrange.imap[2]<-yrange.imap[2]+ici*max(ise) } debian/patches/series0000644000000000000000000000006411731355571012042 0ustar 01_plotPWmap-fix-ranges 02_plotPWmap-fix-subsetting debian/compat0000644000000000000000000000000211731355571010374 0ustar 9 debian/control0000644000000000000000000000211412130257357010574 0ustar Source: erm Section: gnu-r Priority: optional Maintainer: Julian Gilbey Build-Depends: debhelper (>> 9), cdbs, r-base-dev (>= 2.12.0), r-cran-mass, r-cran-raschsampler, r-cran-matrix Standards-Version: 3.9.3 Homepage: http://cran.r-project.org/web/packages/eRm/index.html Package: r-cran-erm Architecture: any Depends: ${R:Depends}, r-cran-mass, r-cran-matrix, r-cran-raschsampler, ${shlibs:Depends}, ${misc:Depends} Description: GNU R package for 'extended Rasch modelling' eRm fits Rasch models (RM), linear logistic test models (LLTM), rating scale model (RSM), linear rating scale models (LRSM), partial credit models (PCM), and linear partial credit models (LPCM). Missing values are allowed in the data matrix. Additional features are the ML estimation of the person parameters, Andersen's LR-test, item-specific Wald test, itemfit and personfit statistics including infit and outfit measures, various ICC and related plots, automated stepwise item elimination, simulation module for various binary data matrices. An eRm platform is provided at R-forge (see URL). debian/changelog0000644000000000000000000001010112146374062011036 0ustar erm (0.14-0-6build1) saucy; urgency=low * Rebuild against R 3.0.0. -- Colin Watson Mon, 20 May 2013 11:17:22 +0100 erm (0.14-0-6) unstable; urgency=low * And fix the Build-Depends to depend on a versioned r-base-dev. -- Julian Gilbey Sun, 07 Apr 2013 12:56:26 +0100 erm (0.14-0-5) unstable; urgency=low * Update the control file to use the ${R:Depends} autogenerated dependency list -- Julian Gilbey Sun, 07 Apr 2013 09:46:06 +0100 erm (0.14-0-4) unstable; urgency=low * Update the control file to show the correct R dependencies -- Julian Gilbey Sat, 06 Apr 2013 21:57:07 +0100 erm (0.14-0-3) unstable; urgency=low * Rebuild for R 3.0.0 -- Julian Gilbey Fri, 05 Apr 2013 14:47:01 +0100 erm (0.14-0-2) unstable; urgency=low * erm: added dependency on r-cran-matrix (Closes: #664609) -- Julian Gilbey Mon, 19 Mar 2012 13:27:09 +0000 erm (0.14-0-1) unstable; urgency=low * New upstream release * Remove now-obsolete dependency and lintian override for cdbs * Update to standards version 3.9.3 * Convert copyright file to copyright-format 1.0 * Fix bug in plotPWmap subsetting feature -- Julian Gilbey Mon, 19 Mar 2012 13:26:17 +0000 erm (0.13-4.1~svn66-1) unstable; urgency=low * New upstream release * Based on SVN revision 66 * Update to standards version 3.9.2 -- Julian Gilbey Tue, 24 May 2011 20:45:12 +0100 erm (0.13-0-2) unstable; urgency=low * Ensure only finite ranges are used in plotPWmap -- Julian Gilbey Wed, 16 Jun 2010 07:10:25 +0100 erm (0.13-0-1) unstable; urgency=low * New upstream release * All earlier patches are now incorporated by upstream -- Julian Gilbey Mon, 14 Jun 2010 19:29:28 +0100 erm (0.12-2.3-2) unstable; urgency=low * Correct person subsetting -- Julian Gilbey Sun, 06 Jun 2010 13:18:48 +0100 erm (0.12-2.3-1) unstable; urgency=low * New upstream release * Upstream now incorporates all of the patches in version 0.12-0-6, so these have been removed from the package (thanks!) -- Julian Gilbey Thu, 03 Jun 2010 11:24:17 +0100 erm (0.12-0-6) unstable; urgency=low * Fix showstopping-bug in plotPathwayMap which broke the code if there were any NA values in the data * Rename plotPathwayMap to plotPWMap, following upstream's request * plotPWMap enhancements requested by upstream: Offer options for colour and size of confidence intervals allow plotting both persons and items on same plot; allow not plotting confidence intervals; -- Julian Gilbey Tue, 01 Jun 2010 11:35:33 +0100 erm (0.12-0-5) unstable; urgency=low * Fixed incorrect Build-Depends; hopefully this will work, but can't be sure as pbuilder isn't working (bug in util-linux) (Closes: #583770) -- Julian Gilbey Sun, 30 May 2010 19:47:44 +0100 erm (0.12-0-4) unstable; urgency=low * Fixed incorrect variable name in plotPathwayMap (thanks to Reinhold Hatzinger again) -- Julian Gilbey Sun, 23 May 2010 23:49:55 +0100 erm (0.12-0-3) unstable; urgency=low * Fix bug with plotPathwayMap - failed if pp was not given as a parameter * Allow more colour possibilities for nonordinal warnings in plotPImap (with thanks to Reinhold Hatzinger for suggesting this) -- Julian Gilbey Mon, 17 May 2010 21:54:21 +0100 erm (0.12-0-2) unstable; urgency=low * Fixed dRM -> dRm bug in plotPImap * Fixed missing warning labels in plotPImap -- Julian Gilbey Sun, 16 May 2010 21:53:16 +0100 erm (0.12-0-1) unstable; urgency=low * Initial Debian release (Closes: #544402) * Fixed subsetting bugs in plotPImap code, and allowed reuse of person.parameter calculations * Added Infit and Outfit t statistics, as per Rating Scale Analysis by Wright and Masters * Added ability to plot (slightly modified) Bond-and-Fox Pathway Maps -- Julian Gilbey Sun, 16 May 2010 17:13:21 +0100