psychTools: psychTools: datasets and utility functions to accompany the...

psychToolsR Documentation

psychTools: datasets and utility functions to accompany the psych package

Description

PsychTools includes the larger data sets used by the psych package and also includes a few general utility functions such as the read.file and read.clipboard functions. The data sets ara made available for demonstrations of a variety of psychometric functions.

Details

See the various helpfiles listed in the index or as links from here. Also see the main functions in the psych package 00.psych-package.

Data sets from the SAPA/ICAR project:

ability 16 ICAR ability items scored as correct or incorrect for 1525 participants.
iqitems multiple choice IQ items (raw responses)
affect Two data sets of affect and arousal scores as a function of personality and movie conditions
bfi 25 Personality items representing 5 factors from the SAPA project for 2800 participants
bfi.dictionary Dictionary of the bfi
big5.100.adjectives 100 adjectives describing the "big 5" for 502 subjects (from Goldberg) colom Correlations from the Spanish WAIS (14 scales)
eminence Eminence of 69 American Psychologists
epi Eysenck Personality Inventory (EPI) data for 3570 participants
epi.dictionary The items for the epi
epi.bfi 13 personality scales from the Eysenck Personality Inventory and Big 5 inventory
epiR 474 participants took the epi twice
msq 75 mood items from the Motivational State Questionnaire for 3896 participants
msqR 75 mood items from the Motivational State Questionnaire for 3032 unique participants
tai Trait Anxiety data from the PMC lab matching the sai sample. 3032 unique subjects
sai State Anxiety data from the PMC lab over multiple occasions. 3032 unique subjects.
sai.dictionary items used in the sai
spi 4000 cases from the SAPA Personality Inventory (135 items, 10 demographics) including an item dictionary and scoring keys.
spi.dictionary The items for the spi
spi.keys Scoring keys for the spi

Historically interesting data sets

burt 11 emotional variables from Burt (1915)
galton Galtons Mid parent child height data
heights A data.frame of the Galton (1888) height and cubit data set
cubits Galtons example of the relationship between height and cubit or forearm length
peas Galtons Peas
cushny The data set from Cushny and Peebles (1905) on the effect of three drugs on hours of sleep, used by Student (1908)
holzinger.swineford 26 cognitive variables + 7 demographic variables for 301 cases from Holzinger and Swineford.

Miscellaneous example data sets

blant A 29 x 29 matrix that produces weird factor analytic results
blot Bonds Logical Operations Test - BLOT
cities Distances between 11 US cities
city.location and their geograpical location
income US family income from US census 2008
all.income US family income from US census 2008
neo NEO correlation matrix from the NEO_PI_R manual
Schutz The Schutz correlation matrix example from Shapiro and ten Berge
Spengler The Spengler and Damian correlation matrix example from Spengler, Damian and Roberts (2018)
Damian Another correlation matrix from Spengler, Damian and Roberts (2018)
usaf A correlation of 17 body size (anthropometric) measures from the US Air Force. Adapted from the Anthropometric package.
veg Paired comparison of preferences for 9 vegetables (scaling example)

Functions to convert various objects to latex

fa2latex Convert a data frame, correlation matrix, or factor analysis output to a LaTeX table
df2latex Convert a data frame, correlation matrix, or factor analysis output to a LaTeX table
ICC2latex Convert an ICC analyssis output to a LaTeX table
irt2latex Convert an irt analysis output to a LaTeX table
cor2latex Convert a correlation matrix output to a LaTeX table
omega2latex Convert a data frame, correlation matrix, or factor analysis output to a LaTeX table

File manipulation functions

fileCreate Create a file
fileScan Show the first few lines of multitple files
filesInfo Show the information for all files in a directory
filesList Show the names of all files in a directory

dfOrder Sorts a data frame vJoin Combine two matrices or data frames into one based upon variable labels combineMatricesTakes a square matrix (x) and combines with a rectangular matrix y to produce a larger xy matrix.

File input/output functions

read.clipboard Shortcuts for reading from the clipboard or a file
read.clipboard.csv
read.clipboard.fwf
read.clipboard.lower
read.clipboard.tab
read.clipboard.upper
read.file Read a file according to its suffix
read.file.csv
read.https
write.file Write data to a file
write.file.csv

Examples

psych::describe(ability)

psychTools documentation built on Sept. 26, 2023, 9:07 a.m.