Description Usage Arguments Details Value Methods (by class)
Convert a PKNCA object into a NONMEM-ready dataset
1 2 3 4 5 6 7 8 9 10 | as.NONMEMdata(object, ...)
## S3 method for class 'PKNCAdata'
as.NONMEMdata(object, ..., conc_cmt_map, dose_cmt_map)
## S3 method for class 'PKNCAconc'
as.NONMEMdata(object, ..., conc_cmt_map = NULL)
## S3 method for class 'PKNCAdose'
as.NONMEMdata(object, ..., dose_cmt_map = NULL)
|
object |
The object to make into a NONMEM-ready dataset. To ensure consistent output of reset data, it's preferred to provide a PKNCAdata object. |
... |
Ignored |
conc_cmt_map, dose_cmt_map |
A data.frame (or similar object) that indicates the mapping between concentration or dosing data and compartment names. See details for more information. |
The attribute "NONMEM_column" will be added to columns to define the following.
For every data type:
IDthe PKNCA subject
TIMEthe time (right hand side) column
EVID0 for PKNCAconc, 1 for PKNCAdose, 3 for reset
EXCLUDETEXTthe text of the exclude column; this will be converted to a factor and put into the EXCLUDENUM column on conversion to a data.frame (and writing to a file)
For concentration data, name mapping for every data type plus:
DVconcentration measurement (or generally, the independent variable for PKNCAconc
For dose data, name mapping for every data type plus:
AMTamount of the dose for PKNCAdose
RATEthe rate of dosing for PKNCAdose
IIinterdose interval is set to 0
ADDLadditional dose count is set to 0
conc_cmt_map
and dose_cmt_map
will use the
dplyr::left_join
function to combine with the data, so
matching columns will define the mapping. One column must be named
"CMT" in the data.frame.
A data.frame or similar ready for export to a .csv file as a NONMEM-ready dataset with an attribute "name_map" for mapping the data.frame names to NONMEM names.
PKNCAdata
: Convert a PKNCAdata object to NONMEM data
PKNCAconc
: Convert a PKNCAconc object to NONMEM data
PKNCAdose
: Convert a PKNCAdose object to NONMEM data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.