Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xgx_check_data

Check data for various issues


Description

xgx_check_data performs a series of checks on a PK or PKPD dataset It was inspired by the dataset preparation table from IntiQuan.

Usage

xgx_check_data(data, covariates = NULL)

Arguments

data,

the dataset to check. Must contain the above columns

covariates,

the column names of covariates, to explore

Details

The dataset must have the following columns

  • ID = unique subject identifier. USUBJID is another option if ID is not there

  • EVID = event ID: 1 for dose, 0 otherwise

  • AMT = value of the dose

  • TIME = time of the measurement

  • DV = dependent value (linear scale). will check if LIDV or LNDV are also there if DV is not

  • YTYPE = data measurement for LIDV. will check if CMT is there, if YTYPE is not

The dataset may also have additional columns

  • CENS = flag for censoring of the data because it's below the limit of quantification (BLOQ)

  • MDV = missing dependent variable - will be counted and then filtered out from the data check

Value

data.frame

Examples

covariates <- c("WEIGHTB", "SEX")
check <- xgx_check_data(mad_missing_duplicates, covariates)

xgxr

Exploratory Graphics for Pharmacometrics

v1.1.1
MIT + file LICENSE
Authors
Andrew Stein [aut, cre], Alison Margolskee [aut], Fariba Khanshan [aut], Konstantin Krismer [aut] (<https://orcid.org/0000-0001-8994-3416>), Matthew Fidler [ctb] (<https://orcid.org/0000-0001-8538-6691>), Novartis Pharma AG [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.