test.psych: Testing of functions in the psych package
Description
Test to make sure the psych functions run on basic test data setsUsage
test.psych(first=1,last=5,short=TRUE)
Arguments
first
first=1: start with dataset first
last
last=5: test for datasets until last
short
short=TRUE - don't return any analyses
Value
- outif short=FALSE, then list of the output from all functions tested
Warning
Warning messages will be thrown by fa.parallel and sometimes by factor.pa for random datasets.Details
When modifying the psych package, it is useful to make sure that adding some code does not break something else. The test.psych function tests the major functions on various standard data sets. It also shows off a number of the capabilities of the psych package.Uses 5 standard data sets:
USArrests Violent Crime Rates by US State (4 variables)
attitude The Chatterjee-Price Attitude Data
Harman23.cor$cov Harman Example 2.3 8 physical measurements
Harman74.cor$cov Harman Example 7.4 24 mental measurements
ability.cov$cov 8 Ability and Intelligence Tests