R/rxode_model.R

setClass(
  "rxode_model",
  representation(
    code = "character",
    theta = "numeric",
    omega = "matrix",
    sigma = "matrix"
  )
)

#_______________________________________________________________________________
#----                                export                                 ----
#_______________________________________________________________________________

#' @rdname export
setMethod("export", signature=c("campsis_model", "rxode_type"), definition=function(object, dest, ...) {
  return(
    new(
      "rxode_model",
      code = rxodeCode(object),
      theta = rxodeParams(object),
      omega = rxodeMatrix(object, type = "omega"),
      sigma = rxodeMatrix(object, type = "sigma")
    )
  )
})

Try the campsismod package in your browser

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

campsismod documentation built on May 29, 2024, 8:48 a.m.