Check that the item responses in raw data are: (1) valid, (2) each valid response mapped to an item appears at least once, and (3) each valid reponse mapped to an item has sufficently many responses (defaults to a minimum of 10 observations for each response category)
caseID: A string indicating the name of the case id variable in the data.
validMap: A data frame which contains a mapping of valid responses to item lables. This data frame shoudl be in long format, with each valis response * item conbination representing a row.
varLabel: A string indicating the name of the variable in validMap that identidies the valis items names/lables.
validLabel: A string indicating the name of the variable in validMap that contains the valid codes/responses for each item. This shoudl include missing values (e.g., "99")
Returns
A list of lists: one list per item in validMapvarLabel.Withineachlist,therecanbeuptothreedfs:(1)thecaseidsandinvalidresponsesfortheitem,(2)thevalidcodesnotobservedinthedataset,and(3)thevalidcodesobservedfewerthan10timesinthedata.NOTE:awanringisthrownifthevalidMapvarLabel is not found in the data.