extract_data_raw imports and converts the raw data to analyzable format
Import Raw PERCH Data
extract_data_raw imports and converts the raw data to analyzable format
extract_data_raw(
dat_prepared,
strat_nm,
strat_val,
meas_object,
extra_covariates = NULL
)A list of data.
A list of Bronze-Standard (BrS) measurements.
The names of the list take the form of specimen_test.
Each element of the list is a data frame. The rows of the data frame
are for subjects; the columns are for measured pathogens.
A list of Silver-Standard (SS) measurements.
The formats are the same as MBS above.
A list of Gold-Standard (GS) measurements.
It equals NULL if no GS data exist.
A data frame with columns specified by extra_covariates.
The data set prepared in clean_perch_data.
The vector of covariate names to separately extract data.
For example, in PERCH data cleaning, X = c("newSITE","CASECONT").
The list of covariate values to stratify data.
Each element corresponds to elements in X. For example, in PERCH
data cleaning, Xval = list("02GAM","1").
A list of bronze-standard or silver-standard measurement
objects made by function make_meas_object().
The vector of covariate name for regression purposes. The default is NULL, which means not reading in any covariate.
clean_perch_data()
Other raw data importing functions:
read_meas_object()