readingAcuity {mnreadR} | R Documentation |
Reading Acuity (RA) calculation
Description
Reading Acuity (RA) is defined as the smallest print size at which one can read without making significant errors. This function measures Reading Acuity to the nearest 0.1 logMAR, while performing print size correction for non-standard testing viewing distance.
Usage
readingAcuity(
data,
print_size,
viewing_distance,
reading_time,
errors,
... = NULL
)
Arguments
data |
The name of your dataframe |
print_size |
The variable that contains print size values for each sentence (print size uncorrected for viewing distance) |
viewing_distance |
The variable that contains the viewing distance value used for testing |
reading_time |
The variable that contains the reading time for each sentence |
errors |
The variable that contains the number of errors for each sentence |
... |
Optional grouping arguments |
Value
The function returns a new dataframe with a variable called "RA" that contains the Reading Acuity estimate (in logMAR).
See Also
mnreadParam
for all MNREAD parameters estimation
curveParam_RT
for MRS and CPS estimation using values of reading time (instead of reading speed)
curveParam_RS
for MRS and CPS estimation using values of reading speed (instead of reading time)
accIndex
for Reading Accessibility Index calculation
Examples
# inspect the structure of the dataframe
head(data_low_vision, 10)
#------
# restrict dataset to one MNREAD test only (subject s1, regular polarity)
data_s1 <- data_low_vision %>% filter (subject == "s1" & polarity == "regular")
# run the reading acuity calculation
data_low_vision_RA <- readingAcuity(data_s1, ps, vd, rt, err)
# inspect the newly created dataframe
data_low_vision_RA
#------
# run the reading acuity calculation on the whole dataset grouped by subject and polarity
data_low_vision_RA <- readingAcuity(data_low_vision, ps, vd, rt, err,
subject, polarity)
# inspect the structure of the newly created dataframe
head(data_low_vision_RA, 10)