R/subtyper.R
rejectLowestQualityRepeat.Rd
This filters data that has both repeats (e.g. multiple images on the same day)
and (optionally) longitudinal data. The quality measure should be a "higher
is better" measurement. This function can be called recursively until it
converges. It is less aggressive than highestQualityRepeat
.
rejectLowestQualityRepeat(mxdfin, idvar, visitvar, qualityvar, verbose = FALSE)
Input data frame with repeated measurements and a grouped time variable
variable name for unique subject identifier column
variable name for the visit or date column
variable name for the quality column; higher values should map to higher quality data.
boolean
data frame
mydf = generateSubtyperData( 100 )
mydfhq = rejectLowestQualityRepeat( mydf, "Id", "visit", "quality")