### This will prompt the user to select an SPSS file
scaleReliability();
### Load data from simulated dataset testRetestSimData (which
### satisfies essential tau-equivalence).
data(testRetestSimData);
### Select some items in the first measurement
exampleData <- testRetestSimData[2:6];
### Use all items
scaleReliability(dat=exampleData, ci=FALSE);
### Use a selection of two variables
scaleReliability(dat=exampleData, items=c('t0_item2', 't0_item4'), ci=FALSE);
### Note that 'ci = FALSE' can be omitted to compute confidence intervals
### for scales of three items or more.
Run the code above in your browser using DataLab