# Change the "id" variable to point to "PRED" in the xpose object
xpdb <- change.xvardef(xpdb,var="id",def="PRED")
# Check the value of the "id" variable
xvardef("id",xpdb)
# Change the "idv" variable
change.xvardef(xpdb,var="idv") <- "TIME"
# Change the covariate scope
change.xvardef(xpdb,var="covariates") <- c("SEX","AGE","WT")
# Use the interactive capabilities of the function
xpdb <- change.xvardef(xpdb)
Run the code above in your browser using DataLab