Computes a prediction interval for the response variable score of one randomly selected member from the study population.
pi.score(alpha, m, sd, n)
alpha level for 1-alpha confidence
estimated mean
estimated standard deviation
sample size
Returns a 1-row matrix. The columns are:
Predicted - predicted score
df - degrees of freedom
LL - lower limit of the prediction interval
UL - upper limit of the prediction interval
pi.score(.05, 24.5, 3.65, 40)
#> Predicted df LL UL
#> 24.5 39 17.02546 31.97454
# Should return:
# Predicted df LL UL
# 24.5 39 17.02546 31.97454