Summarize simulated exposures relative to reference subject
Source:R/summarizeCovs.R
summarizeCovs.Rd
Summarize simulated exposures relative to reference subject
Arguments
- data
Simulated data to process. This data.frame must contain must contain multiple columns, as defined by NMsim::expandCovs().
- funs.exposure
A named list of functions to apply for derivation of exposure metrics.
- cols.value
The default is to run exposure metrics based on the `PRED` column. Specify another or multiple columns to run the analysis on.
- cover.ci
The coverage of the confidence intervals. Default is 0.95.
- by
a character vector of names columns to perform all calculations by. This could be sampling subsets or analyte.
- as.fun
The default is to return data as a `data.frame`. Pass a function (say `tibble::as_tibble`) in as.fun to convert to something else. If data.tables are wanted, use `as.fun="data.table"`. The default can be configured using `NMdataConf()`.