Find index of data that satisfies certain conditions
Arguments
- data
A data frame.
- dayvar
String indicating assessment day. Adding this argument makes sure that the first measurement of a day is not regressed on the last measurement of the previous day. IMPORTANT: only add this if the data has multiple observations per day.
- beepvar
Optional string indicating assessment beep per day. Adding this argument will cause non-consecutive beeps to be treated as missing!