logMARcorrect: Print size correction for non-standard viewing distance

Description Usage Arguments Value Examples

View source: R/viewing_distance_correction.R

Description

The logMAR scale allows simple conversion of print size between different viewing distances. When the MNREAD test is not run at the standard distance (ie. 40 cm - 16 inches), the angular print size (in logMAR) must be adjusted to compensate for the change in viewing distance. This function allows to correct the print size accordingly to the viewing distance used for testing.

Usage

1
logMARcorrect(data, print_size, viewing_distance)

Arguments

data

The name of your dataframe

print_size

The variable that contains print size values (print size uncorrected for viewing distance)

viewing_distance

The variable that contains the viewing distance value used for testing

Value

The function returns the original dataframe with an added variable called "correct_ps" that contains corrected print size values (in logMAR).

Examples

1
2
3
4
5
6
7
8
# inspect the strucutre of the dataframe
head(data_low_vision, 10)

# run the correction
data_low_vision_new <- logMARcorrect(data_low_vision, ps, vd)

# inspect the structure of the newly created dataframe
head(data_low_vision_new, 10)

mnreadR documentation built on June 25, 2021, 1:07 a.m.