| system_nca_run {ubiquity} | R Documentation | 
Automatic NCA
Description
Performs NCA in an automated fashion
Usage
system_nca_run(
  cfg,
  dsname = "PKDS",
  dscale = 1,
  NCA_options = NULL,
  NCA_min = 4,
  analysis_name = "analysis",
  dsfilter = NULL,
  extrap_C0 = TRUE,
  extrap_N = 2,
  sparse = FALSE,
  dsmap = list(TIME = "TIME", NTIME = "NTIME", CONC = "CONC", DOSE = "DOSE", ID = "ID",
    ROUTE = "ROUTE", DOSENUM = NULL, BACKEXTRAP = NULL, SPARSEGROUP = NULL),
  dsinc = NULL
)
Arguments
cfg | 
 ubiquity system object  | 
dsname | 
 name of dataset loaded with (  | 
dscale | 
 factor to multiply the dose to get it into the same units as concentration (default   | 
NCA_options | 
 specify a list of options for PKNCA to overwrite the
defaults (default   | 
NCA_min | 
 minimum number of points required to perform NCA for a given subset (default   | 
analysis_name | 
 string containing the name of the analysis (default 'analysis') to archive to files and reference results later  | 
dsfilter | 
 list of names corresponding to the column names in the dataset and values are a sequence indicating values to keep (default  dsfilter = list(dose=c(1,2,5), dose_number = c(1))  | 
extrap_C0 | 
 Boolean variable to enable automatic determination of initial drug concentration if no value is specified; the rules used by WinNonlin will be used: 
  | 
extrap_N | 
 number of points to use for back extrapolation (default   | 
sparse | 
 Boolean variable used to indicate data used sparse sampling and the analysis should use the average at each time point (the   | 
dsmap | 
 list with names specifying the columns in the dataset (* required): 
  | 
dsinc | 
 (NOT CURRENTLY IMPLEMENTED) optional character vector of columns from the dataset to include in the output summary (default   | 
Value
cfg ubiquity system object with the NCA results and if the analysis name is specified:
output/analysis_name-nca_summary-pknca.csv NCA summary
output/analysis_name-pknca_summary.csv Raw output from PKNCA with subject and dose number columns appended
output/analysis_name-nca_data.RData objects containing the NCA summary and a list with the ggplot grobs
See Also
Vignette on NCA (vignette("NCA", package = "ubiquity"))