# NOT RUN {
# }
# NOT RUN {
## xpdb5 is an Xpose data object
## We expect to find the required NONMEM run and table files for run
## 5 in the current working directory
xpdb5 <- xpose.data(5)
## Change default subset
xpdb5 <- change.subset(xpdb5)
## Set documentation field
xpdb5 <- set.doc(xpdb5)
## View it
view.doc(xpdb5)
## change the categorical limit for the dv variable
change.dv.cat.levels(xpdb5) <- 10
## change the categorical limit for non DV variables
change.cat.levels(xpdb5) <- 2
## or
xpdb5 <- change.cat.levels(xpdb5,cat.levels=2)
## chnage variables from categorical to continuous
xpdb5 <- change.cat.cont(xpdb5,to.cat.vec=c("AGE"),to.cont.vec=c("SEX"))
xpdb5 <- change.cat.cont(xpdb5,change.type.vec=c("AGE","SEX"))
change.cat.cont(xpdb5) <- c("AGE","SEX")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab