Remove cardinal biases for data with orientation (color, motion, ...) set in discrete steps
remove_cardinal_biases_discrete(err, x, space, init_outliers = NULL)
returns a data.table with the following columns:
is_outlier - 0 for outliers (defined as ±3*predicted SD, where SD and mean are computed after excluding initially assumed outliers)
be_c error corrected for biases (be_c = observed error - pred
)
a vector of errors, deviations of response from the true stimuli
a vector of true stimuli in degrees (see space)
circular space to use (a string: 180
or 360
)
a vector determining which errors are initially assumed to be outliers (default: NULL)