VII. Applications: sciences, economics and optimization
53. Psychometrics
Psychometric computations for interpreting test results (after the textbook "Clinical psychometrics – from a number to an interpretation") are in the "Statistics and psychometrics" form – the "Applications" section of the home screen, the Psychology field. Pick the task, the scale and what is sought and fill in the measured values; the scale prefills the norm's mean and standard deviation (IQ 100; 15, T 50; 10, scaled 10; 3, z 0; 1, sten 5.5; 2, stanin 5; 2), "Custom" lets you enter another test's norm. The "?" icon explains where the formula comes from.
Help right in the app: the "?" icon of each task in the form explains what it computes and where the formula comes from. The result shows the steps one by one, and the technical terms in them (Cohen's kappa, the ROC curve, the confidence interval, the p-value, the percentile, the true score, the predictive values …) are underlined with dots – a tap on a term shows its short explanation in plain words, often with an example. The notes at the end of the steps say how to interpret the result and what to watch out for.
Converting standard scores: z = (X − M)/SD and from it T, IQ, the scaled score, sten and stanin (rounded to a whole number within the scale) and the percentile. Score and percentile: the percentile rank PR = 100·Φ(z) assuming the normal distribution, and back the score of a given percentile.
The standard error of measurement SEM = SD·√(1 − r) from the reliability r. The confidence interval around the observed score X ± z·SEM at 80, 90, 95 or 99 % (z = 1.28; 1.645; 1.96; 2.576). The estimated true score T′ = M + r(X − M) – regression to the mean – with the interval around T′ and the standard error of estimation SEE = SD·√(r(1 − r)).
The significance of a difference of two scores of one scale (WAIS indexes, say): the standard error of the difference SE_diff = SD·√(2 − r₁₁ − r₂₂) and the critical difference z·SE_diff. A test's predictive values by Bayes' theorem: PPV and NPV from the sensitivity, specificity and prevalence – or from a 2×2 table (true and false positives and negatives), optionally with the prevalence of the population the test is used in – with the likelihood ratios LR⁺ and LR⁻.
The Spearman–Brown formula (in the same form) gives the reliability of a test lengthened k times, r′ = k·r / (1 + (k − 1)·r), or the other way round how many times to lengthen a test for a target reliability – given the current number of items, also the items needed. Bonferroni's correction gives the stricter level α′ = α/m for m comparisons, with the probability of a false significant result without a correction and Šidák's correction.
Reliability and agreement from measured data come from the chips of data(…) or of the grid's “As data” (pasted from Excel, a CSV file): Cronbach's alpha – items in columns, respondents in rows – with an item analysis (the item's correlation with the rest of the test, alpha if the item is deleted); the ICC – raters in columns, subjects in rows – all six forms by Shrout and Fleiss from an analysis-of-variance table; Cohen's kappa from two columns of ratings (categories as numbers) or from a square agreement table; the ROC curve and AUC from a column of scores and a column of the state 0/1 (1 = the condition) by the Mann–Whitney U, with the cut-off by Youden's index and a graph of the ROC curve. Alpha, the ICC, kappa and the AUC come with a confidence interval (90, 95 or 99 % by a chip): alpha by Feldt, the ICC from the F distribution, kappa from the asymptotic standard error, the AUC by Hanley and McNeil. For ordered categories kappa is computed with linear or quadratic weights too. The ROC curve can also come from two columns of two groups' scores (the first positive, of any lengths), with the Mann–Whitney test added to the AUC. Three columns – two tests' scores and the state – are compared by DeLong's test, both curves in one graph.
The steps end with an interpretive note: percentiles are ordinal (not added or averaged), converting to a percentile holds only for a normally distributed score, a significant difference isn't necessarily unusual (the discrepancy's base rate), the predictive values depend on the prevalence. The graph shows the normal curve with the score, the interval or the critical region marked.
Examples
model(scores; find=all[one]; X=85[one]; M=100[one]; SD=15[one]; scale=iq)![model(scores; find=all[one]; X=85[one]; M=100[one]; SD=15[one]; scale=iq)](img/psychometrics-scores.png)
![model(scores; find=all[one]; X=85[one]; M=100[one]; SD=15[one]; scale=iq)](img/psychometrics-scores-1.png)
![model(scores; find=all[one]; X=85[one]; M=100[one]; SD=15[one]; scale=iq)](img/psychometrics-scores-2.png)
model(percentile; find=PR[one]; X=130[one]; M=100[one]; SD=15[one]; scale=iq)![model(percentile; find=PR[one]; X=130[one]; M=100[one]; SD=15[one]; scale=iq)](img/psychometrics-percentile.png)
![model(percentile; find=PR[one]; X=130[one]; M=100[one]; SD=15[one]; scale=iq)](img/psychometrics-percentile-1.png)
![model(percentile; find=PR[one]; X=130[one]; M=100[one]; SD=15[one]; scale=iq)](img/psychometrics-percentile-2.png)
model(percentile; find=X[one]; PR=16[pct]; M=50[one]; SD=10[one]; scale=t)![model(percentile; find=X[one]; PR=16[pct]; M=50[one]; SD=10[one]; scale=t)](img/psychometrics-percentile-score.png)
![model(percentile; find=X[one]; PR=16[pct]; M=50[one]; SD=10[one]; scale=t)](img/psychometrics-percentile-score-1.png)
![model(percentile; find=X[one]; PR=16[pct]; M=50[one]; SD=10[one]; scale=t)](img/psychometrics-percentile-score-2.png)
model(sem; find=SEM[one]; SD=15[one]; r=0.97[one]; scale=iq)
model(interval; find=CI[one]; X=95[one]; SD=15[one]; r=0.97[one]; scale=iq; level=95)![model(interval; find=CI[one]; X=95[one]; SD=15[one]; r=0.97[one]; scale=iq; level=95)](img/psychometrics-interval.png)
![model(interval; find=CI[one]; X=95[one]; SD=15[one]; r=0.97[one]; scale=iq; level=95)](img/psychometrics-interval-1.png)
![model(interval; find=CI[one]; X=95[one]; SD=15[one]; r=0.97[one]; scale=iq; level=95)](img/psychometrics-interval-2.png)
model(truescore; find=T[one]; X=74[one]; M=100[one]; SD=15[one]; r=0.92[one]; scale=iq; level=95)![model(truescore; find=T[one]; X=74[one]; M=100[one]; SD=15[one]; r=0.92[one]; scale=iq; level=95)](img/psychometrics-truescore.png)
![model(truescore; find=T[one]; X=74[one]; M=100[one]; SD=15[one]; r=0.92[one]; scale=iq; level=95)](img/psychometrics-truescore-1.png)
![model(truescore; find=T[one]; X=74[one]; M=100[one]; SD=15[one]; r=0.92[one]; scale=iq; level=95)](img/psychometrics-truescore-2.png)
model(difference; find=D[one]; X1=112[one]; X2=97[one]; SD=15[one]; r1=0.95[one]; r2=0.90[one]; scale=iq; level=95)![model(difference; find=D[one]; X1=112[one]; X2=97[one]; SD=15[one]; r1=0.95[one]; r2=0.90[one]; scale=iq; level=95)](img/psychometrics-difference.png)
![model(difference; find=D[one]; X1=112[one]; X2=97[one]; SD=15[one]; r1=0.95[one]; r2=0.90[one]; scale=iq; level=95)](img/psychometrics-difference-1.png)
![model(difference; find=D[one]; X1=112[one]; X2=97[one]; SD=15[one]; r1=0.95[one]; r2=0.90[one]; scale=iq; level=95)](img/psychometrics-difference-2.png)
model(predictive; find=values[one]; sens=92.5[pct]; spec=74.6[pct]; p=2[pct]; input=rates)![model(predictive; find=values[one]; sens=92.5[pct]; spec=74.6[pct]; p=2[pct]; input=rates)](img/psychometrics-predictive.png)
![model(predictive; find=values[one]; sens=92.5[pct]; spec=74.6[pct]; p=2[pct]; input=rates)](img/psychometrics-predictive-1.png)
![model(predictive; find=values[one]; sens=92.5[pct]; spec=74.6[pct]; p=2[pct]; input=rates)](img/psychometrics-predictive-2.png)
model(predictive; find=values[one]; TP=37[one]; FP=10[one]; FN=3[one]; TN=50[one]; input=table)![model(predictive; find=values[one]; TP=37[one]; FP=10[one]; FN=3[one]; TN=50[one]; input=table)](img/psychometrics-predictive-table.png)
![model(predictive; find=values[one]; TP=37[one]; FP=10[one]; FN=3[one]; TN=50[one]; input=table)](img/psychometrics-predictive-table-1.png)
![model(predictive; find=values[one]; TP=37[one]; FP=10[one]; FN=3[one]; TN=50[one]; input=table)](img/psychometrics-predictive-table-2.png)
data(P1 P2 P3 P4; 3 4 3 5; 2 2 3 2; 4 5 4 4; 5 4 5 5; 1 2 2 1; 3 3 4 3) Cronbach's alpha


data(H1 H2 H3 H4; 9 2 5 8; 6 1 3 2; 8 4 6 8; 7 1 2 6; 10 5 6 9; 6 2 4 7) ICC (inter-rater reliability)


data(A B; 1 1; 1 1; 2 2; 1 2; 2 2; 3 3; 1 1; 2 3; 3 3; 2 2; 1 1; 3 2) Cohen's kappa


data(A B; 1 1; 1 1; 2 2; 1 2; 2 2; 3 3; 1 1; 2 3; 3 3; 2 2; 1 1; 3 2) Cohen's kappa, Quadratic weights


data(20 5; 10 15) Cohen's kappa


data(12 0; 15 1; 9 0; 20 1; 18 1; 11 0; 7 0; 14 1; 16 0; 10 0) ROC curve and AUC


data(pacienti = 15 20 18 14 17; zdravi = 12 9 11 7 16 10 13) ROC curve and AUC


data(A B stav; 12 10 0; 15 14 1; 9 11 0; 20 13 1; 18 19 1; 11 9 0; 7 12 0; 14 16 1; 16 8 0; 10 13 0) ROC curve and AUC


model(spearmanbrown; find=k[one]; r=0.7[one]; rt=0.9[one]; items=20[one])
model(bonferroni; find=alpha[one]; alpha=0.05[one]; m=10[one])
Known limitations
- The percentile comes from the normal distribution – for skewed tests (TMT's times) only the norm table's percentile is right.
- The confidence intervals are asymptotic or approximate – with small samples (up to 10–20 cases) take them as a guide only.
- A task in words or from a photo (a textbook's problem) isn't supported yet – the values go into the form.