psychotools 0.7-8.99
Code repository changed from SVN @ WU to Codeberg at: https://codeberg.org/zeileis/psychotools/
Added basic altdoc page with overview and documentation at: https://zeileis.codeberg.page/psychotools/
psychotools 0.7-8
Bug fix in
rsmodel()andpcmodel()when applied to item responses where all response patterns are incomplete and have the same number of missing values (reported and fixed by Magnus Johansson).Avoid spurious warning in
personpar()method forraschmodel,rsmodel(), andpcmodel()objects.
psychotools 0.7-7
- Updated
structure()calls to usenames = ...instead of.Names = ...etc.
psychotools 0.7-6
Fix in
estfun()method fornpmodel()objects for the case when some impact groups are empty (which is not unusual when fitting trees).Updated examples and reference output to avoid differences in output of summary with
NAsvs.NA's.
psychotools 0.7-5
Add packages utilized in
demo(package = "psychotools")toDESCRIPTION/Suggests. Also usehcl.colors()instead of packagecolorspace.Don’t test visualization of
likertobjects that can be coerced fromitemrespobjects because itsplot()method currently throws a warning.
psychotools 0.7-4
- Return the matched function call as
$callin IRT functionsraschmodel(),rsmodel(),pcmodel(),nplmodel(),gpcmodel()(suggested by Rainer W. Alexandrowicz).
psychotools 0.7-3
Fixed calculation of person parameter covariance matrix estimate (and thus confidence intervals) in
personpar()methods for Rasch models (reported by Rainer W. Alexandrowicz).Fixed bug in
threshpar()method ofpcmodelobjects fitted to binary items reported by Rainer W. Alexandrowicz).Fixed bug in
pcmodel()which failed when the reference category was a null category (without observations). Now the first category with observations is chosen as the reference category (reported by Rainer W. Alexandrowicz).Improved
raschmodel(),rsmodel(), andpcmodel()so that anNAvariance-covariance matrix is returned (with a warning) if the Hessian cannot be inverted instead of stopping with a technical error message (suggested by Rainer W. Alexandrowicz).Fixed names of
"mscale"attribute initemrespvariable inMathExam14Wdata, now consistent with column names.
psychotools 0.7-2
Bug fix in
discrpar()method fornplmodel(..., type = "1PL")so that the variance covariance matrix is computed correctly.Documentation enhancements in the mathematical notation (suggested by Kurt Hornik) and in the description of the 1PL/Rasch model in
nplmodel()(suggested by Feng Lin).
psychotools 0.7-1
The function (and resulting class) for fitting n-PL type parametric logistic IRT models has been renamed from
plmodel()tonplmodel(). For now, a copy calledplmodel()is also preserved (but this also returns an object of class"nplmodel").Fix logicals of length > 1 in some
if()constructs.Accept
.replicatesfor user-provided model specifications inmptmodel().
psychotools 0.7-0
Changed default constant anchor selection method in
anchor()andanchortest()from MPT to Gini based on Strobl et al. (2021, Applied Psychological Measurement). The Gini-based anchor selection is simpler because it is based on single anchors while at the same time performing very well under DIF.The
print()method foranchortest()now just displays the anchor item(s) and the final DIF tests while thesummary()method displays the full information including anchored item parameters etc. (rather than vice versa).The
print()andsummary()methods foranchor()andanchortest()now display item labels (rather than indexes) for the selected anchor item(s) and for the full vector of criterion values.Added the
"proCNI"multinomial processing tree specification inmptspec()formptmodel(). This provides the CNI model of moral dilemma judgment for proscriptive norms.
psychotools 0.6-1
- New
vignette("toolbox-simulation", package = "psychotools")on how to conduct simulation studies investigating the performance of score-based tests of measurement invariance of IRT models. Accompanies the PsyArXiv preprint mentioned below.
psychotools 0.6-0
New
anchor()selection strategy using inequality-based alignment, either based on the Gini index or the component loss function (CLF). Thus, also directly available inanchortest(). Improvedprint()andplot()methods.Changed method to invert Hessian for
raschmodel(),rsmodel(), andpcmodel()fromqr.solve()tochol2inv(chol()).Added two demos on how to conduct simulation studies for score-based test of measurement invariance.
All IRT models now have a function to simulate IRT data, see
rrm(),rrsm(),rpcm(),rpl(), andrgpcm().An accompanying new PsyArXiv Preprint “An R Toolbox for Score-Based Measurement Invariance Tests in IRT Models” by Lennart Schneider, Carolin Strobl, Achim Zeileis, and Rudolf Debelak is available at https://doi.org/10.31234/osf.io/r9w34
psychotools 0.5-1
- Added “IGNORE_RDIFF” flags in some examples in order to avoid showing diffs due to small numeric deviations in some checks (especially on CRAN).
psychotools 0.5-0
Infrastructure for IRT modeling in the unified
psychotoolsframework is extended by marginal maximum likelihood (MML) estimation of generalized partial credit models and parametric logistic models, respectively. The corresponding fitting functions (see below for details) callmirt()ormultipleGroup()from themirtpackage but return objects for which all standard extractor methods (item parameters, person parameters, etc.) and visualization methods (item response curves, parameter profiles, person-item maps, etc.) are available.The new
gpcmodel()function interfacesmirt(see above) and fits (generalized) partial credit models (GPCMs) by MML.The new
plmodel()function interfacesmirt(see above) and fits various parametric IRT logistic models using MML: 1PL (Rasch), 2PL, 3PL, 3PLu, and 4PL.New functions and eponymous classes
guesspar(), andupperpar()to extract/represent so-called guessing parameters and upper asymptote parameters of IRT models.personpar()now distinguishes between parameters of the assumed person ability distribution (personwise = FALSE) and the individual person parameters for each person/subject in the underlying data set (personwise = TRUE). In the CML case, the latter simply computes the raw score for each person and then extracts the corresponding person parameter. In the MML case, this necessitates (numerically) integrating out the individual person parameters (also known as factor scores or latent trait estimates) based on the underlying normal distribution.Added new data set
ConspiracistBeliefs2016from the Open Source Psychometrics Project (2016).Added new simulated data set
Sim3PLfor fitting dichotomous IRT models, especially the 3PL and 3PLu.
psychotools 0.4-3
Conditionally register all
estfun()andbread()S3 methods for model objects, provided that thesandwichpackage is attached.Added native routine registration for
esf.c.Use R version of
elementary_symmetric_functions()by default on Win/i386 due to small numeric differences on that platform.The
estfun()method forbtmodelobjects always computed the scores with the last object for the reference category - even if a differentref=was specified in the model. (Thanks to Heather Turner for pointing out the problem.)The
itempar()method forbtmodelobjects miscomputed the variance covariance matrix (unless the first object was used as the ref when estimating the model). (Thanks to Heather Turner for pointing out the problem.)
psychotools 0.4-2
Added new data set
PairClusteringfrom Klauer (2006).Fixed replication code in example of
StereotypeThreat(reported by Ed Merkle).Basil Abou El-Komboz changed his name to Basil Komboz.
psychotools 0.4-1
Properly imported
grDevicesandutilsinNAMESPACE.Added new item response data set
MathExam14Wwith esponses of 729 students to 13 items in a written exam of introductory mathematics along with several covariates.
psychotools 0.4-0
New function
mptmodel()and corresponding extractor functions for fitting multinomial processing tree (MPT) models. These functions are somewhat experimental, and their user interface might change in future releases.Bug fix in
itempar()method forraschmodelobjects ifalias = FALSE. In the previous version the methods had an erroneous trailingNA.Improved item names labeling in
plot()method foritemrespobjects to conform withregionplot()function for IRT models.mscale<-()method foritemresphas been improved so that categories can be easily collapsed (e.g., dichotomized).
psychotools 0.3-0
Infrastructure for IRT modeling in
psychotoolsis greatly enhanced. Therefore the main modeling functions are now calledraschmodel()for Rasch models,rsmodel()for rating scale models,pcmodel()for partial credit models, andbtmodel()for Bradley-Terry models. The old*.fit()functions from previous versions of the package still exist but now internally call the new*model()functions. Also, the classes returned have the same names as the*modelfunctions.A unified visualization framework for fitted IRT models has been added: For all types of models (Rasch, RSM, PCM) one can visualize profiles of the item parameters, regions for the most likely response, item or category characteristic curves, item information, and person-item plots. All of these rely on the unified framework for extracting parameters and predictions (see below).
New functions and eponymous classes
itempar(),threshpar(), anddiscrpar()to extract/represent item, threshold, and discrimination parameters of item response models. Methods for the IRT models (Rasch, RSM, PCM) are provided. In addition, several methods for standard generic functions (print(),coef(),vcov()) are available.The
worth()generic now internally calls the methods foritempar().Estimation of person parameters for a given item response model is now available via the generic function
personpar(). Specific methods for Rasch, rating scale and partial credit models allow the estimatation of person parameters via joint maximum likelihood estimation. Methods for standard generic functions (print(),coef(),vcov()) are available for the resulting objects of classpersonpar.predict()methods for Rasch, rating scale and partial credit models have been added. For a given fitted model object, these can be used to predict various types of response probabilities or actual reponses.New functions
anchor()andanchortest()provide a variety of anchor methods for the detection of uniform differential item functioning (DIF) between two pre-specified groups in the Rasch model. To test for DIF, the itemwise Wald test is implemented.itemresp()is the class constructor for responses of n subjects to k items which can be polytomous and have different measurement scales. A wide range of methods to standard generics is provided as well as to generics created for thepaircompclass. Thus, features can be easily extracted/replaced, summaries/visualizations can be produced, subsetting/merging/etc. is facilitated.The handling of argument
refwhen producing a region plot (previously called effect plot) was changed. Whereas in the previous implementation, the restriction specified in this argument was applied to the cumulative absolute item threshold parameters, it now is applied to the absolute item threshold parameters.A bug occuring in
pcmodel()when null categories are present andnullcats = "keep"was fixed. (Thanks to Oliver Prosperi for reporting this.)The processing of the minimal category zero in the function
rsmodel()was changed. Only if for all items, the minimal category is above zero, downcoding takes place. Otherwise, the missing minimal categories are treated as not observed, i.e., with a frequency of zero.
psychotools 0.2-0
Major update with new model fitting functions (partial credit and rating scale model) and improved infrastructure for conditional maximum likelihood estimation (C implementation of elementary symmetric functions).
Partial credit models (PCMs) can be fitted with the function
PCModel.fit(). The interface and return value is similar to that ofRaschModel.fit().Rating scale models (RSMs) can be fitted with the function
RSModel.fit(). The interface and return value is similar to that ofRaschModel.fit()andPCModel.fit().The function
elementary_symmetric_functions()for computing ESFs is extended and now part of the exported user interface. The R implementation for binary items up to order 2 is complemented by a C implementation for both binary and polytomous items up to order 1.Due to numerical instabilities in the coefficients and standard errors between different architectures, the optimization method for
Rasch/RSModel/PCModel.fit()was changed fromnlm(...)tooptim(..., method = "BFGS"). Consequently, the argumentsreltolandmaxitare used now instead ofgradtolanditerlim. For backward compatibilityRaschModel.fit()still supports the old arguments but might cease to do so in future releases.
psychotools 0.1-4
- Added
YouthGratitudedata from Froh, Fan, Emmons, Bono, Huebner, Watkins (2011, Psychological Assessment), provided by Jeff Froh and Jinyan Fan. Some approximate replication code is provided in the examples (the parts depending onlavaanare in\dontrun).
psychotools 0.1-3
- Fully exported
elementary_symmetric_functions(). (An extended C implementation is under development and will be included in future releases.)
psychotools 0.1-2
Support of non-integer weights in
btReg.fit(). To facilitate this,summary.paircomp()gained a weights argument so that optionally the weights are aggregated instead of observations counted.Actually pass on
nlm()arguments fromRaschModel.fit(). Also supportiterlim = 0, i.e., set up model at pre-specified parameters.Added
StereotypeThreatdata from Wicherts, Conor, Hessen (2005, Journal of Personality and Social Psychology), provided by Jelte M. Wicherts. Replication code is provided in the examples (the parts depending onlavaanare in\dontrun).
psychotools 0.1-1
New
psychotoolspackage containing all “base” infrastructure previously contained inpsychotree. This is in order to provide both methods and data that can be reused bypsychotreeand the new packagepsychomix(as well as potentially further packages).Classes:
paircompand associated methods.Models:
btReg.fit()andRaschModel.fit()and associated methods.Data:
Firstnames,GermanParties2009,Soundquality(previoulsy inpsychotree) andVerbalAggression(new data, contained in other formatting indifRasverbalandlme4asVerbAgg).