clean_perch_data {baker} | R Documentation |
Clean PERCH data
Description
clean_perch_data
transforms a raw data table (row for subjects, column
for variables - named as {pathogen name}_{specimen}{test}
for lab tests
or other covariates) into a list. It is designed for PERCH data format.
Usage
clean_perch_data(clean_options)
Arguments
clean_options |
The list of options for cleaning PERCH data. Its elements are defined as follows:
. |
Value
A List: list(Mobs,Y,X)
-
Mobs
A list of bronze- (MBS
), silver- (MSS
), and gold-standard (MGS
, if available) measurements. See the formats of these measurements inextract_data_raw()
. -
Y
1 for case; 0 for control; -
X
Data frame of covariates for cases and controls. The covariate names are specified inX_extra
;
This function does not re-order pathogens that only have silver-standard data.
See Also
make_meas_object for wrapping information about a particular
type of measurement; extract_data_raw for reading raw data table
and organizing them into data_nplcm
format. Also see clean_combine_subsites
for combining subsites and parse_date_time for parsing date.