sel
Type of selection, do we want visits from last, from first first, within a date range, or specific visit numbers. Default is last
numTests
number of tests to select from last, first, or a date range. If sel is an array of indices or set to a date range, numTests is overruled. Default is 1