<- ys_help$spec()
spec
nm_input(spec)
$INPUT
C NUM ID SUBJ=DROP TIME SEQ CMT EVID AMT DV AGE WT CRCL ALB BMI
AAG SCR AST ALT HT CP TAFD TAD LDOS MDV BLQ PHASE STUDY RF=DROP
We can use the spec object to create code that goes directly into a NONMEM control stream as the $INPUT
block. nm_input()
will by default cat the code to your console for copy/paste into the control stream.
$INPUT
C NUM ID SUBJ=DROP TIME SEQ CMT EVID AMT DV AGE WT CRCL ALB BMI
AAG SCR AST ALT HT CP TAFD TAD LDOS MDV BLQ PHASE STUDY RF=DROP
nm_input()
will by default drop columns with character
type.
The text is returned invisibly, so if you just want the code returned
[1] "$INPUT"
[2] "C NUM ID SUBJ=DROP TIME SEQ CMT EVID AMT DV AGE WT CRCL ALB BMI"
[3] "AAG SCR AST ALT HT CP TAFD TAD LDOS MDV BLQ PHASE STUDY RF=DROP"
Pass column names in via the .drop
argument to drop them from the problem
You can rename columns with <new name> = <old name>
syntax.
Use the .long
argument to get a long, annotated version of $INPUT
You can also get more verbose output
$INPUT
HT ; height
CP ; Child-Pugh score
; [0 = normal, 1 = Pugh1, 2 = Pugh2, 3 = Pugh3]
TAFD ; time after first dose
TAD ; time after dose
LDOS ; last dose amount
MDV ; MDV
; [0 = non-missing, 1 = missing]
BLQ ; below limit of quantification
; [0 = above QL, 1 = below QL]
PHASE ; study phase indicator
; [values: 1]
STUDY ; study number
; [1 = SAD, 2 = MAD, 3 = Renal, 4 = Hepatic]
RF=DROP ; renal function stage