testing is a package for the R statistical environment providing functions to develop psychometric tests, mainly leveraging on the Classical Test Theory.
The package can be installed by connecting to this repository by using the package devtools, which must be previously installed. To install testing you can run the command:
devtools::install_github("DavideMassidda/testing")testing not replaces other well-known packages as psych (on which it depends), but should be considered as their integration.
The package stems from the author's need to collect into a single repository the most commonly R functions used in his daily practice. These functions are therefore rather heterogeneous, but they share the usefulness in some steps of psychometric test building. Some functions of testing are present in other forms in different R packages, when not in base R. In these cases, testing offers a different output format optimized for application in psychometric data analysis. Sometimes, the functions are implemented following algorithmic peculiarities that make them only apparently similar to other sources.
Born from a messy collection of commands scattered within a multitude of scripts, over time the package has been refined, making a great effort to optimize the functions and standardize the style. During the development, some functions were refined, and others were deprecated and not replaced. If you search old versions including functions no longer available, you can take a look of old sources of the package.
reverseScore reversing.normalize(ornormalise) Vector rescaling.stdscoreFrom raw scores to standard scores.rawscoreFrom standard scores to raw scores.percrankFrom observed scores to percentile ranks.raw2stdConversion of raw scores from a norm table.std2percFrom standard scores to percentiles.perc2stdFrom percentiles to standard scores.
integer_roundConversion from decimal to integer.decimal_floorRound a decimal number to the nearest floor for a given decimal position.decimal_ceilingRound a decimal number to the nearest ceiling for a given decimal position.integer_floorRound a decimal number to the nearest integer floor.integer_ceilingRound a decimal number to the nearest integer ceiling.
score_rollupCreation of intervals of scores.score_explodeExplosion of intervals of scores.score_implodeImplosion of intervals of scores.is_continuousCheck for continuous vectors.is_monotonicCheck for monotonic vectors.roc_tableSearch a score cut-off by using a ROC analysis.
se_measureStandard error of measurement.kr20Kuder–Richardson formula 20.cronbach_alphaCronbach's alpha.cronbach_strataStratified Cronbach's alpha.average_reliabilityAverage reliability coefficient.splithalf_reliabilitySplit-half reliability.drop_itemInternal consistency reliability.
entropyEntropy index.integer_countsCount integer values.
age_completedAge Calculation from dates.age_numericAge Conversion: from character to numeric.age_characterAge Conversion: from numeric to character.age_segmentGrouping by age segmentation.
driveSecure drive project.abilityTestAbility test.normTabNormative table.testDatesTest dates.