Check arguments for nbc()
Performs checks to ensure that the arguments passed to
internalNBC are correct.
This function will also auto-clean when appropriate, and display
warning messages of the cleaning tasks.
Dataframe of verbal autopsy train data (See
Dataframe of verbal autopsy test data in the same format as train except if causes are not known:
TRUE to indicate that the test causes are available in the 2nd column and FALSE to indicate that they are not known
TRUE to set all symptoms not equal to 1 as 0 and FALSE to raise error if symptoms are not 0 or 1. This takes priority over unknown.
A single integer value which determines if a symptom is unknown as to if is present or absent.
The following checks are applied to train and test to ensure they:
are a dataframe
have required number of rows and columns
have required data types for each column
have required symptom values
are in the same format
have unique ids
out A list object containing the checked inputs:
$train: dataframe of id, cause and symptoms
$test: dataframe of id, cause and symptoms in the same format as train
$known: TRUE if the test causes are known or FALSE if not
Other validation functions:
1 2 3 4 5 6 7 8 9