R/endpointInfo.R

Defines functions monolixEndpoints

#' This gets the monolix endpoint information in the model
#'
#'
#' @param mlxtran This is the parsed mlxtran or imported rxode2 model from monolix
#'
#' @return nothing, called for side effects
#' @noRd
#' @author Matthew L. Fidler
monolixEndpoints <- function(mlxtran) {
  mlxtran <- .monolixGetMlxtran(mlxtran)
  if (is.null(mlxtran)) return(NULL)
  .end <- mlxtran$MODEL$LONGITUDINAL$DEFINITION$endpoint
  vapply(seq_along(.end),
         function(i) {
           .end[[i]]$var
         }, character(1), USE.NAMES = FALSE)
}

Try the monolix2rx package in your browser

Any scripts or data that you put into this service are public.

monolix2rx documentation built on April 4, 2025, 3:54 a.m.