guessage {DDM} | R Documentation |
which age is closest to the point clicked?
Description
a utility function called by ggbChooseAges()
.
Usage
guessage(xvec, yvec, click, age)
Arguments
xvec |
|
yvec |
|
click |
a point given by |
age |
ages present in dataset |
Value
the age corresponding to the x,y pair of $rightterm
, $lefttterm
closest to the point clicked.
[Package DDM version 1.0-0 Index]