Read data in a Monolix/NONMEM format
readDatamlx(
project = NULL,
data = NULL,
out.data = FALSE,
nbSSDoses = 10,
obs.rows = FALSE,
error.iov = FALSE,
filter = NULL,
datafile = NULL,
header = NULL,
infoProject = NULL,
addl.ss = NULL
)
a Monolix project
a list with fields
dataFile
: path of a formatted data file
headerTypes
: a vector of strings
TRUE/FALSE (default=FALSE) returns the original data as a table and some information about the Monolix project
number of additional doses to use for steady-state (default=10)
a list of observation indexes
TRUE/FALSE (default=TRUE) returns an error message if occasions are overlapping
filter to apply to the data (string)
(deprecated) a formatted data file
(deprecated) a vector of strings
(deprecated) an xmlfile
(deprecated) number of additional doses to use for steady-state (default=10)
A list of data frames
See http://simulx.webpopix.org/mlxr/readdatamlx/ for more details.
# NOT RUN {
# using a Monolix project:
d <- readDatamlx(project='projects/warfarinPK.mlxtran')
# using a data file:
warfarinPK <- list(dataFile = "data/warfarinPK.csv",
headerTypes = c("id", "time", "observation", "amount",
"contcov", "contcov", "catcov"),
administration = "oral")
d <- readDatamlx(data=warfarinPK)
# }
Run the code above in your browser using DataLab