Reformat data between various data set layouts
reformat_data.RdReformat data between various data set layouts
Arguments
- data
A data set or list of data sets.
- dictionary
A data dictionary that maps expected variable names to variables in the data.
- input_type
The type of input data set, defined as follows:
"nca": a data set with one row for every observed concentration measurement. Time, concentration value, and administered dose are required columns. The data set may contain any other variables, covariates, groupings etc in columns."modeling": a data set with dose events (evid = 1), concentrations (evid = 0), and potentially other events (events = 2) in separate rows. Dataset requires columns for event type, time, dose amount, measured concentration. The dataset may contain any other variables, covariates, groupings etc in columns."sdtm": a list of various data sets or "domains", such asADSLDM,EX, andDS, following the SDTM structure and nomenclature.
- output_type
type of output dataset. Can be either
"nca"or"modeling".- ...
passed onto specific reformatting functions:
input_type = "nca"andoutput_type = "modeling":reformat_data_nca_to_modeling()input_type = "sdtm"andoutput_type = "modeling":reformat_data_sdtm_to_modeling()input_type = "modeling"andoutput_type = "modeling":reformat_data_modeling_to_modeling()input_type = "modeling"andoutput_type = "nca":reformat_data_modeling_to_nca()