profile.nlmixr2FitCore | R Documentation |
Perform likelihood profiling on nlmixr2 focei fits
## S3 method for class 'nlmixr2FitCore'
profile(
fitted,
...,
which = NULL,
method = c("llp", "fixed"),
control = list()
)
fitted |
The fit model |
... |
ignored |
which |
The parameter names to perform likelihood profiling on
( |
method |
Method to use for profiling (see the details) |
control |
Control arguments for the |
A data.frame with one column named Parameter
indicating the
parameter being fixed on that row, one column for the OFV
indicating the
OFV estimated for the model at that step, one column named profileBound
indicating the estimated value for the profile likelihood and its step
above the minimum profile likelihood value, and columns for each parameter
estimate (or fixed) in the model.
method = "llp"
The search will stop when either the OFV is within ofvtol
of the desired
OFV change or when the parameter is interpolating to more significant digits
than specified in paramDigits
. The "llp" method uses the profileLlp()
function. See its help for more details.
method = "fixed"
Estimate the OFV for specific fixed values. The "fixed" method uses the
profileFixed()
function. See its help for more details.
Other Profiling:
fixedControl()
,
llpControl()
,
profileFixed()
,
profileLlp()
,
profileNlmixr2FitCoreRet()
## Not run:
# Likelihood profiling takes a long time to run each model multiple times, so
# be aware that running this example may take a few minutes.
oneCmt <- function() {
ini({
tka <- log(1.57)
tcl <- log(2.72)
tv <- fixed(log(31.5))
eta.ka ~ 0.6
add.sd <- 0.7
})
model({
ka <- exp(tka + eta.ka)
cl <- exp(tcl)
v <- exp(tv)
cp <- linCmt()
cp ~ add(add.sd)
})
}
fit <-
nlmixr2(
oneCmt, data = nlmixr2data::theo_sd, est="focei", control = list(print=0)
)
# profile all parameters
profall <- profile(fit)
# profile a single parameter
proftka <- profile(fit, which = "tka")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.