TestwiseKnow your test. Trust your scores.

Resources / Methods and formulas

Methods and formulas

What every tool on this site calculates, how, and how to get the same numbers in R. All results were checked against the R functions listed; the differences are at the third decimal or smaller.

Item analysis

StatisticFormula or rule
Facilityp = number correct / number of test-takers
D indexp in the top 27% − p in the bottom 27% (ranked by total score)
Corrected item–total rPearson r between the item and the total of the other items
Alpha if deletedCronbach's alpha recomputed without the item

R: psych::alpha() · Source: Brown (2005); Carr (2011)

Reliability

StatisticFormula or rule
Cronbach's alpha (KR-20 for 0/1 items)α = k/(k − 1) × (1 − Σ item variances / total variance)
Feldt 95% CI1 − (1 − α) × F(1 − γ/2; n − 1, (n − 1)(k − 1)) to 1 − (1 − α) × F(γ/2; …)
Split-half (odd–even)r between halves, corrected with Spearman–Brown: 2r/(1 + r)
Spearman–Brownρ* = nρ / (1 + (n − 1)ρ)
SEMSD × √(1 − reliability)
SE of a differenceSEM × √2 (equal SEMs)

R: psych::alpha() (Feldt CI) · Source: Cronbach (1951); Feldt (1965)

Kelley's true-score estimate

StatisticFormula or rule
EstimateT̂ = ρX + (1 − ρ)μ
Standard error of estimationSD × √(ρ(1 − ρ))

R: — · Source: Kelley (1947)

Rater agreement

StatisticFormula or rule
Cohen's kappaκ = (p_o − p_e) / (1 − p_e)
Quadratic weighted kappa1 − Σ w·O / Σ w·E, with w = (i − j)² / (K − 1)²
ICC (two-way)consistency: (MSR − MSE)/(MSR + (k − 1)MSE); agreement: (MSR − MSE)/(MSR + (k − 1)MSE + k(MSC − MSE)/n)
Fleiss' kappa(P̄ − P̄_e) / (1 − P̄_e) for any number of raters

R: irr::kappa2(), irr::icc(), irr::kappam.fleiss() · Source: Cohen (1960); Fleiss (1971); Shrout & Fleiss (1979)

Descriptive statistics

StatisticFormula or rule
Skewness (type 3)m₃ / s³
Excess kurtosis (type 3)m₄ / s⁴ − 3
Percentile rankpercentage of the group scoring at or below the score
z and Tz = (x − mean)/SD; T = 50 + 10z

R: psych::describe() · Source: Brown (2005)

DIF (Mantel–Haenszel)

StatisticFormula or rule
Common odds ratioα_MH = Σ(A·D/N) / Σ(B·C/N) over total-score strata
ETS deltaMH D-DIF = −2.35 ln α_MH
Test statisticMH χ² with continuity correction; iterative purification of the matching score
ETS categories (simplified)A: |Δ| < 1 or not significant; B: moderate; C: |Δ| ≥ 1.5 and significant

R: difR::difMH(purify = TRUE) · Source: Holland & Thayer (1988); Holland & Wainer (1993)

Rasch model

StatisticFormula or rule
ModelP(correct) = exp(θ − b) / (1 + exp(θ − b))
Estimationjoint maximum likelihood with (L − 1)/L bias correction
Infit mean-squareΣ(residual²) / Σ(variance)
Outfit mean-squaremean of squared standardized residuals
Person reliability(observed variance − mean error variance) / observed variance

R: TAM::tam.jml(); eRm::RM() · Source: Bond & Fox (2015); Wright & Linacre (1994)

Standard setting

StatisticFormula or rule
Angoff cutmean over judges of the sum of item probabilities
SE of the cutSD of judges' cuts / √(number of judges)
Contrasting groupsthe score that minimizes false passes + false fails

R: — · Source: Angoff (1971); Cizek & Bunch (2007)

Comparing two groups

StatisticFormula or rule
Welch's tt = (M₁ − M₂) / √(s₁²/n₁ + s₂²/n₂), with Welch–Satterthwaite df
Cohen's dd = (M₁ − M₂) / pooled SD
Hedges' gg = d × (1 − 3 / (4(n₁ + n₂) − 9))
95% CI for dd ± 1.96 × √((n₁ + n₂)/(n₁n₂) + d²/(2(n₁ + n₂)))

R: t.test() in R · Source: Welch (1947); Cohen (1988); Plonsky & Oswald (2014)

Correlation

StatisticFormula or rule
Pearson's rcovariance / (SD_x × SD_y); t = r√(n − 2)/√(1 − r²)
95% CItanh(atanh(r) ± 1.96/√(n − 3)) (Fisher z)
Spearman's rhoPearson r of the ranks (ties get average ranks)
Influential casethe student whose removal changes r the most

R: cor.test() in R · Source: Fisher (1921); Spearman (1904)

Test length (Spearman–Brown)

StatisticFormula or rule
Predicted reliabilityρ* = kρ / (1 + (k − 1)ρ), where k = new length / old length
Length factor for a targetk = ρ*(1 − ρ) / (ρ(1 − ρ*))

R: — · Source: Spearman (1910); Brown (1910)

A note on privacy

All calculations run in your browser with plain JavaScript. Nothing you paste is uploaded or stored on a server. Drafts and progress are kept in your browser's local storage only, and you can clear them by clearing site data. Local processing removes one risk, not all of them: on a shared or unsecured computer, other people, browser extensions or saved drafts could still expose data, so remove student names where you can and clear the boxes when you finish.

Validation against R

Each tool was checked by running the same sample data through R. The table shows the results. Matching R shows that the calculations are correct. It does not show that a statistic is the right one for your design, or that your test is valid; that is a question of judgment and evidence.

StatisticSample dataTestwiseRR function
Cronbach's alphaPizza Placement Test (120 × 20)0.80040.8004psych::alpha()
Feldt 95% CI for alphaPizza Placement Test[0.7447, 0.8488][0.74, 0.85]psych::alpha.ci()
Corrected item–total r, item 7Pizza Placement Test−0.3810−0.3810psych::alpha() r.drop
Cohen's kappaTwo raters, 80 essays0.20050.2005irr::kappa2()
Quadratic weighted kappaTwo raters, 80 essays0.76810.7681irr::kappa2(weight = "squared")
ICC, consistencyTwo raters, 80 essays0.88070.8807irr::icc(model = "twoway", type = "consistency")
ICC, absolute agreementTwo raters, 80 essays0.77040.7704irr::icc(model = "twoway", type = "agreement")
Fleiss' kappaThree raters, 60 speakers0.15180.1518irr::kappam.fleiss()
Mantel–Haenszel χ², item 7DIF sample (400 × 20)13.594113.5941difR::difMH(purify = TRUE)
MH common odds ratio, item 7DIF sample3.10923.1092difR::difMH() alphaMH
Welch's t (df)Extensive reading vs regular2.7520 (95.63)2.7520 (95.63)t.test()
Pearson's r [95% CI]Reading and GPA (90)0.4833 [0.3069, 0.6276]0.4833 [0.3069, 0.6276]cor.test()
Spearman's rhoReading and GPA0.57160.5716cor(method = "spearman")

The Rasch tool uses joint maximum likelihood with a bias correction. Its item difficulties were within 0.02 logits of conditional maximum likelihood estimates (eRm), and infit values were close to TAM. Software that uses other estimation methods will give slightly different numbers.

Reference software

R 4.3.3 with psych 2.4.1, irr 0.85 and difR 5.1 (checked November 2026). Testwise values are computed in double precision and rounded only for display: coefficients to two or three decimals, p-values to three decimals (or "< .001"), following APA style.

Edge cases the tools check

  • Missing data: item-based tools (item analysis, reliability, Rasch) use only complete rows (listwise deletion) and tell you how many rows were left out. Rater and correlation tools use the rows where both scores exist. If a blank means "wrong", replace it with 0 yourself.
  • Items or raters with no variation (everyone got the item right, or a rater gave every essay the same band): the tool warns you, because these break correlations and agreement statistics.
  • Too few cases: every tool warns when the sample is small for that statistic.
  • Wrong format: letters in a 0/1 tool, text instead of numbers, or a missing group column produce a plain-English message instead of a result.