
Stabilizing Covariance Estimates with preconditionFit()
Matthew Fidler
2026-11-19
Source:vignettes/articles/precondition.Rmd
precondition.RmdThe problem: ill-conditioned covariance matrices
After fitting a nonlinear mixed-effects model with FOCEI, the standard errors (SEs) of the population parameters are derived from the variance-covariance matrix of the parameter estimates. This matrix is assembled from the R matrix (second-derivative / Hessian approximation) and, optionally, the S matrix (cross-product of first derivatives). When the parameters are on very different scales, or when two parameters are nearly collinear, the R matrix becomes ill-conditioned: small rounding errors in the gradient calculations are amplified during the matrix inversion and the resulting covariance matrix is unreliable.
Symptoms of this problem include:
-
covMethodreported as"r"or"s"rather than the preferred"r,s" - NaN or negative values on the diagonal of the covariance matrix
- Standard errors that are implausibly large or small relative to the estimates
-
%RSEvalues that are very large
The solution: preconditioning
Aoki, Nordgren, and Hooker (2016) showed that a simple linear reparameterization of the fixed-effects parameters can dramatically improve the condition number of the R matrix without changing the model or its fit. The idea is to find a matrix P such that P R P^T is close to the identity matrix, run FOCEI on the reparameterized model (which converges to a numerically stable covariance matrix), and then transform the result back to the original parameterization.
nlmixr2extra implements this approach in
preconditionFit().
Reference: Aoki Y, Nordgren R, Hooker AC. Preconditioning of Nonlinear Mixed Effects Models for Stabilization of Variance-Covariance Matrix Computations. AAPS J. 2016;18(2):505–518. doi:[10.1208/s12248-016-9866-5](https://doi.org/10.1208/s12248-016-9866-5)
Basic usage
library(nlmixr2extra)
oneCompartment <- function() {
ini({
tka <- 0.45 # log Ka
tcl <- 1 # log Cl
tv <- 3.45 # log V
eta.ka ~ 0.6
eta.cl ~ 0.3
eta.v ~ 0.1
add.sd <- 0.7
})
model({
ka <- exp(tka + eta.ka)
cl <- exp(tcl + eta.cl)
v <- exp(tv + eta.v)
d/dt(depot) <- -ka * depot
d/dt(center) <- ka * depot - cl/v * center
cp <- center / v
cp ~ add(add.sd)
})
}
fit := nlmixr2(oneCompartment, data = nlmixr2data::theo_sd,
est = "focei", control = list(print = 0))
fitIf the covariance method reported is not "r,s" (or you
simply want a more robust covariance estimate), apply
preconditioning:
invisible(preconditionFit(fit))
#> → loading into symengine environment...
#> → pruning branches (`if`/`else`) of full model...
#> ✔ done
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
#> → calculate sensitivities
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
#> → calculate ∂(f)/∂(η)
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
#> → calculate ∂(R²)/∂(η)
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
#> → finding duplicate expressions in inner model...
#> → finding duplicate expressions in EBE model...
#> → compiling inner model...
#> ✔ done
#> → finding duplicate expressions in FD model...
#> → compiling EBE model...
#> ✔ done
#> → compiling events FD model...
#> ✔ done
#> rxode2 5.1.8.9000 using 2 threads (see ?getRxThreads)
#> no cache: create with `rxCreateCache()`
#>
#> Attaching package: 'rxode2'
#> The following objects are masked from 'package:nlmixr2est':
#>
#> boxCox, yeoJohnson
#> Key: U: Unscaled Parameters; X: Back-transformed parameters; G: Gill difference gradient approximation
#> F: Forward difference gradient approximation
#> C: Central difference gradient approximation
#> M: Mixed forward and central difference gradient approximation
#> A: Analytic (forward sensitivity) gradient (fast=TRUE)
#> Unscaled parameters for Omegas=chol(solve(omega));
#> Diagonals are transformed, as specified by foceiControl(diagXform=)
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 1| 116.81022 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 2| 116.81019 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 3| 117.16534 | -0.7752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 15.40 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 15.40 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 4| 116.80966 | -0.9752 | -0.8000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.756 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.756 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 5| 355.05535 | -0.9752 | -1.000 | 1.200 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1889. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1889. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 6| 118.06581 | -0.9752 | -1.000 | 1.000 | -0.5133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 263.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 263.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 7| 118.02599 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.7898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.417 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.417 | 1.945 | 2.666 |...........|
#> | 8| 116.96447 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.7890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 2.048 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 2.048 | 2.666 |...........|
#> | 9| 116.82748 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.7880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.741 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.741 |...........|
#> | 10| 117.13148 | -1.175 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 10.27 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 10.27 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 11| 116.81420 | -0.9752 | -1.200 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.815 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.815 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 12| 357.44839 | -0.9752 | -1.000 | 0.8000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1259. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1259. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 13| 118.45624 | -0.9752 | -1.000 | 1.000 | -0.9133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 175.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 175.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 14| 117.97817 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -1.190 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.100 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.100 | 1.945 | 2.666 |...........|
#> | 15| 117.03177 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -1.189 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.843 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.843 | 2.666 |...........|
#> | 16| 116.87959 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -1.188 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.591 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.591 |...........|
#> | 17| 116.81723 | -0.9802 | -0.8039 | 1.000 | -0.6998 |
#> |.....................| -0.9918 | -0.9711 | -0.9278 |...........|
#> | U| | 12.77 | -6.757 | 1575. | 222.8 |
#> |.....................| 1.257 | 1.955 | 2.689 |...........|
#> | X| | 12.77 | -6.757 | 1575. | 222.8 |
#> |.....................| 1.257 | 1.955 | 2.689 |...........|
#> | 18| 116.81120 | -0.9752 | -0.7600 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.750 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.750 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 19| 116.82606 | -0.9824 | -0.8074 | 1.000 | -0.7006 |
#> |.....................| -0.9901 | -0.9750 | -1.033 |...........|
#> | U| | 12.74 | -6.757 | 1575. | 222.7 |
#> |.....................| 1.258 | 1.953 | 2.649 |...........|
#> | X| | 12.74 | -6.757 | 1575. | 222.7 |
#> |.....................| 1.258 | 1.953 | 2.649 |...........|
#> | 20| 116.81075 | -0.9929 | -0.7823 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.61 | -6.754 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.61 | -6.754 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 21| 116.81958 | -0.9802 | -0.8015 | 1.000 | -0.7089 |
#> |.....................| -0.9911 | -1.012 | -0.9815 |...........|
#> | U| | 12.77 | -6.756 | 1575. | 220.8 |
#> |.....................| 1.258 | 1.934 | 2.669 |...........|
#> | X| | 12.77 | -6.756 | 1575. | 220.8 |
#> |.....................| 1.258 | 1.934 | 2.669 |...........|
#> | 22| 117.45739 | -0.9752 | -0.8100 | 1.010 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.758 | 1590. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.758 | 1590. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 23| 116.81440 | -0.9727 | -0.7904 | 0.9996 | -0.7163 |
#> |.....................| -0.9905 | -0.9837 | -0.9801 |...........|
#> | U| | 12.87 | -6.755 | 1574. | 219.2 |
#> |.....................| 1.258 | 1.948 | 2.669 |...........|
#> | X| | 12.87 | -6.755 | 1574. | 219.2 |
#> |.....................| 1.258 | 1.948 | 2.669 |...........|
#> | 24| 116.81593 | -0.9752 | -0.8100 | 1.000 | -0.7033 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.758 | 1574. | 222.1 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.758 | 1574. | 222.1 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 25| 116.82081 | -0.9750 | -0.7993 | 0.9995 | -0.7141 |
#> |.....................| -0.9760 | -0.9908 | -0.9897 |...........|
#> | U| | 12.83 | -6.756 | 1573. | 219.7 |
#> |.....................| 1.270 | 1.945 | 2.665 |...........|
#> | X| | 12.83 | -6.756 | 1573. | 219.7 |
#> |.....................| 1.270 | 1.945 | 2.665 |...........|
#> | 26| 116.81140 | -0.9752 | -0.8100 | 1.000 | -0.7133 |
#> |.....................| -0.9998 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.758 | 1574. | 219.9 |
#> |.....................| 1.251 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.758 | 1574. | 219.9 |
#> |.....................| 1.251 | 1.945 | 2.666 |...........|
#> | 27| 116.81263 | -0.9722 | -0.7952 | 0.9998 | -0.7123 |
#> |.....................| -0.9974 | -0.9940 | -0.9972 |...........|
#> | U| | 12.87 | -6.755 | 1574. | 220.1 |
#> |.....................| 1.252 | 1.943 | 2.663 |...........|
#> | X| | 12.87 | -6.755 | 1574. | 220.1 |
#> |.....................| 1.252 | 1.943 | 2.663 |...........|
#> | 28| 116.80918 | -0.9752 | -0.8100 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9790 | -0.9880 |...........|
#> | U| | 12.83 | -6.758 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.951 | 2.666 |...........|
#> | X| | 12.83 | -6.758 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.951 | 2.666 |...........|
#> | 29| 116.80981 | -0.9867 | -0.8085 | 0.9996 | -0.7174 |
#> |.....................| -0.9924 | -0.9853 | -0.9883 |...........|
#> | U| | 12.68 | -6.757 | 1574. | 219.0 |
#> |.....................| 1.257 | 1.947 | 2.666 |...........|
#> | X| | 12.68 | -6.757 | 1574. | 219.0 |
#> |.....................| 1.257 | 1.947 | 2.666 |...........|
#> | 30| 116.81100 | -0.9649 | -0.8197 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9795 | -0.9880 |...........|
#> | U| | 12.96 | -6.759 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.666 |...........|
#> | X| | 12.96 | -6.759 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.666 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 31| 117.41390 | -0.9752 | -0.8197 | 0.9898 | -0.7133 |
#> |.....................| -0.9898 | -0.9795 | -0.9880 |...........|
#> | U| | 12.83 | -6.759 | 1558. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.666 |...........|
#> | X| | 12.83 | -6.759 | 1558. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.666 |...........|
#> | 32| 116.80923 | -0.9655 | -0.8085 | 0.9998 | -0.7124 |
#> |.....................| -0.9936 | -0.9698 | -0.9903 |...........|
#> | U| | 12.96 | -6.757 | 1574. | 220.1 |
#> |.....................| 1.256 | 1.955 | 2.665 |...........|
#> | X| | 12.96 | -6.757 | 1574. | 220.1 |
#> |.....................| 1.256 | 1.955 | 2.665 |...........|
#> | 33| 116.81553 | -0.9752 | -0.8197 | 1.000 | -0.7235 |
#> |.....................| -0.9898 | -0.9795 | -0.9880 |...........|
#> | U| | 12.83 | -6.759 | 1574. | 217.6 |
#> |.....................| 1.259 | 1.950 | 2.666 |...........|
#> | X| | 12.83 | -6.759 | 1574. | 217.6 |
#> |.....................| 1.259 | 1.950 | 2.666 |...........|
#> | 34| 116.80924 | -0.9745 | -0.8052 | 0.9997 | -0.7134 |
#> |.....................| -0.9941 | -0.9836 | -0.9763 |...........|
#> | U| | 12.84 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.255 | 1.948 | 2.671 |...........|
#> | X| | 12.84 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.255 | 1.948 | 2.671 |...........|
#> | 35| 116.81055 | -0.9740 | -0.8057 | 0.9997 | -0.7151 |
#> |.....................| -0.9920 | -0.9800 | -0.9926 |...........|
#> | U| | 12.85 | -6.757 | 1574. | 219.5 |
#> |.....................| 1.257 | 1.950 | 2.664 |...........|
#> | X| | 12.85 | -6.757 | 1574. | 219.5 |
#> |.....................| 1.257 | 1.950 | 2.664 |...........|
#> | 36| 116.82282 | -0.9766 | -0.8114 | 1.001 | -0.7118 |
#> |.....................| -0.9900 | -0.9779 | -0.9901 |...........|
#> | U| | 12.82 | -6.758 | 1576. | 220.2 |
#> |.....................| 1.258 | 1.951 | 2.665 |...........|
#> | X| | 12.82 | -6.758 | 1576. | 220.2 |
#> |.....................| 1.258 | 1.951 | 2.665 |...........|
#> | 37| 116.80905 | -0.9746 | -0.8085 | 0.9997 | -0.7136 |
#> |.....................| -0.9902 | -0.9778 | -0.9852 |...........|
#> | U| | 12.84 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.258 | 1.951 | 2.667 |...........|
#> | X| | 12.84 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.258 | 1.951 | 2.667 |...........|
#> | 38| 116.80900 | -0.9756 | -0.8071 | 0.9997 | -0.7136 |
#> |.....................| -0.9902 | -0.9784 | -0.9853 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.258 | 1.951 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.258 | 1.951 | 2.667 |...........|
#> | 39| 116.80878 | -0.9752 | -0.8074 | 0.9996 | -0.7133 |
#> |.....................| -0.9893 | -0.9798 | -0.9858 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 40| 116.80962 | -0.9763 | -0.8078 | 0.9997 | -0.7125 |
#> |.....................| -0.9901 | -0.9804 | -0.9863 |...........|
#> | U| | 12.82 | -6.757 | 1574. | 220.0 |
#> |.....................| 1.258 | 1.950 | 2.667 |...........|
#> | X| | 12.82 | -6.757 | 1574. | 220.0 |
#> |.....................| 1.258 | 1.950 | 2.667 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 41| 116.81061 | -0.9758 | -0.8072 | 0.9996 | -0.7135 |
#> |.....................| -0.9886 | -0.9798 | -0.9859 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.260 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.260 | 1.950 | 2.667 |...........|
#> | 42| 116.80946 | -0.9745 | -0.8072 | 0.9997 | -0.7135 |
#> |.....................| -0.9899 | -0.9800 | -0.9859 |...........|
#> | U| | 12.84 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.84 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 43| 116.80947 | -0.9752 | -0.8082 | 0.9996 | -0.7139 |
#> |.....................| -0.9894 | -0.9797 | -0.9859 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.7 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.7 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 44| 116.81041 | -0.9748 | -0.8076 | 0.9995 | -0.7125 |
#> |.....................| -0.9892 | -0.9795 | -0.9854 |...........|
#> | U| | 12.84 | -6.757 | 1573. | 220.0 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.84 | -6.757 | 1573. | 220.0 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 45| 116.81440 | -0.9752 | -0.8072 | 0.9989 | -0.7133 |
#> |.....................| -0.9893 | -0.9791 | -0.9856 |...........|
#> | U| | 12.83 | -6.757 | 1572. | 219.9 |
#> |.....................| 1.259 | 1.951 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1572. | 219.9 |
#> |.....................| 1.259 | 1.951 | 2.667 |...........|
#> | 46| 116.81004 | -0.9755 | -0.8068 | 0.9998 | -0.7135 |
#> |.....................| -0.9895 | -0.9802 | -0.9853 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 47| 116.81226 | -0.9752 | -0.8076 | 1.000 | -0.7133 |
#> |.....................| -0.9894 | -0.9804 | -0.9859 |...........|
#> | U| | 12.83 | -6.757 | 1575. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1575. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 48| 116.80989 | -0.9750 | -0.8073 | 0.9998 | -0.7133 |
#> |.....................| -0.9893 | -0.9793 | -0.9865 |...........|
#> | U| | 12.84 | -6.757 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.84 | -6.757 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 49| 116.80991 | -0.9752 | -0.8076 | 0.9996 | -0.7126 |
#> |.....................| -0.9894 | -0.9804 | -0.9859 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 220.0 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 220.0 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 50| 116.80963 | -0.9752 | -0.8078 | 0.9997 | -0.7134 |
#> |.....................| -0.9897 | -0.9796 | -0.9849 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.8 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 51| 116.80979 | -0.9752 | -0.8074 | 0.9996 | -0.7133 |
#> |.....................| -0.9893 | -0.9798 | -0.9858 |...........|
#> | U| | 12.83 | -6.757 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | X| | 12.83 | -6.757 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.950 | 2.667 |...........|
#> | 52| 116.81213 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 53| 116.81214 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 54| 117.35509 | -0.7252 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 16.04 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 16.04 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 55| 116.80993 | -0.9752 | -0.7500 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.749 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.749 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 56| 486.09884 | -0.9752 | -1.000 | 1.250 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1968. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1968. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 57| 118.71130 | -0.9752 | -1.000 | 1.000 | -0.4633 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 274.8 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 274.8 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 58| 118.67839 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.7398 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.457 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.457 | 1.945 | 2.666 |...........|
#> | 59| 117.05744 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.7390 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 2.074 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 2.074 | 2.666 |...........|
#> | 60| 116.84183 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.7380 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.760 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.760 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 61| 117.31362 | -1.225 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 9.625 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 9.625 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 62| 116.81438 | -0.9752 | -1.250 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.822 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.822 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 63| 480.60823 | -0.9752 | -1.000 | 0.7500 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1181. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1181. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 64| 119.47326 | -0.9752 | -1.000 | 1.000 | -0.9633 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 164.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 164.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 65| 118.65522 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -1.240 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.060 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.060 | 1.945 | 2.666 |...........|
#> | 66| 117.15217 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -1.239 | -0.9880 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.817 | 2.666 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.817 | 2.666 |...........|
#> | 67| 116.90792 | -0.9752 | -1.000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -1.238 |...........|
#> | U| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.572 |...........|
#> | X| | 12.83 | -6.786 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.572 |...........|
#> | 68| 116.82580 | -0.9802 | -0.7439 | 0.9991 | -0.6924 |
#> |.....................| -0.9906 | -0.9688 | -0.9218 |...........|
#> | U| | 12.77 | -6.748 | 1573. | 224.5 |
#> |.....................| 1.258 | 1.956 | 2.691 |...........|
#> | X| | 12.77 | -6.748 | 1573. | 224.5 |
#> |.....................| 1.258 | 1.956 | 2.691 |...........|
#> | 69| 116.81166 | -0.9752 | -0.7000 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.741 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.741 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 70| 116.83487 | -0.9793 | -0.7531 | 0.9991 | -0.6963 |
#> |.....................| -0.9902 | -0.9850 | -1.048 |...........|
#> | U| | 12.78 | -6.749 | 1573. | 223.6 |
#> |.....................| 1.258 | 1.948 | 2.644 |...........|
#> | X| | 12.78 | -6.749 | 1573. | 223.6 |
#> |.....................| 1.258 | 1.948 | 2.644 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 71| 116.81404 | -0.9973 | -0.7279 | 1.000 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.55 | -6.746 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.55 | -6.746 | 1574. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 72| 116.81809 | -0.9769 | -0.7520 | 0.9991 | -0.7080 |
#> |.....................| -0.9900 | -1.017 | -0.9751 |...........|
#> | U| | 12.81 | -6.749 | 1573. | 221.0 |
#> |.....................| 1.258 | 1.931 | 2.671 |...........|
#> | X| | 12.81 | -6.749 | 1573. | 221.0 |
#> |.....................| 1.258 | 1.931 | 2.671 |...........|
#> | 73| 117.53079 | -0.9752 | -0.7612 | 0.9888 | -0.7133 |
#> |.....................| -0.9898 | -0.9890 | -0.9880 |...........|
#> | U| | 12.83 | -6.750 | 1557. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | X| | 12.83 | -6.750 | 1557. | 219.9 |
#> |.....................| 1.259 | 1.945 | 2.666 |...........|
#> | 74| 116.80979 | -0.9677 | -0.7440 | 0.9999 | -0.7110 |
#> |.....................| -0.9899 | -0.9823 | -0.9776 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 75| 116.81242 | -0.9680 | -0.7552 | 0.9999 | -0.7221 |
#> |.....................| -0.9899 | -0.9826 | -0.9781 |...........|
#> | U| | 12.92 | -6.750 | 1574. | 217.9 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.750 | 1574. | 217.9 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 76| 116.81175 | -0.9715 | -0.7428 | 0.9999 | -0.7139 |
#> |.....................| -0.9900 | -0.9920 | -0.9734 |...........|
#> | U| | 12.88 | -6.748 | 1574. | 219.7 |
#> |.....................| 1.258 | 1.944 | 2.672 |...........|
#> | X| | 12.88 | -6.748 | 1574. | 219.7 |
#> |.....................| 1.258 | 1.944 | 2.672 |...........|
#> | 77| 117.59080 | -0.9680 | -0.7553 | 1.011 | -0.7111 |
#> |.....................| -0.9899 | -0.9826 | -0.9781 |...........|
#> | U| | 12.92 | -6.750 | 1591. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.750 | 1591. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 78| 116.81615 | -0.9601 | -0.7376 | 0.9994 | -0.7210 |
#> |.....................| -0.9871 | -0.9830 | -0.9842 |...........|
#> | U| | 13.03 | -6.747 | 1573. | 218.2 |
#> |.....................| 1.261 | 1.949 | 2.668 |...........|
#> | X| | 13.03 | -6.747 | 1573. | 218.2 |
#> |.....................| 1.261 | 1.949 | 2.668 |...........|
#> | 79| 116.81919 | -0.9680 | -0.7553 | 0.9999 | -0.7111 |
#> |.....................| -0.9788 | -0.9826 | -0.9781 |...........|
#> | U| | 12.92 | -6.750 | 1574. | 220.4 |
#> |.....................| 1.267 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.750 | 1574. | 220.4 |
#> |.....................| 1.267 | 1.949 | 2.670 |...........|
#> | 80| 116.81234 | -0.9689 | -0.7454 | 0.9995 | -0.7138 |
#> |.....................| -1.004 | -0.9800 | -0.9822 |...........|
#> | U| | 12.91 | -6.748 | 1573. | 219.8 |
#> |.....................| 1.247 | 1.950 | 2.668 |...........|
#> | X| | 12.91 | -6.748 | 1573. | 219.8 |
#> |.....................| 1.247 | 1.950 | 2.668 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 81| 116.81520 | -0.9674 | -0.7327 | 0.9999 | -0.7109 |
#> |.....................| -0.9788 | -0.9820 | -0.9772 |...........|
#> | U| | 12.93 | -6.746 | 1574. | 220.4 |
#> |.....................| 1.267 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.746 | 1574. | 220.4 |
#> |.....................| 1.267 | 1.949 | 2.670 |...........|
#> | 82| 116.81755 | -0.9723 | -0.7423 | 0.9997 | -0.7220 |
#> |.....................| -0.9843 | -0.9741 | -0.9802 |...........|
#> | U| | 12.87 | -6.748 | 1574. | 218.0 |
#> |.....................| 1.263 | 1.953 | 2.669 |...........|
#> | X| | 12.87 | -6.748 | 1574. | 218.0 |
#> |.....................| 1.263 | 1.953 | 2.669 |...........|
#> | 83| 116.81795 | -0.9680 | -0.7553 | 0.9999 | -0.7000 |
#> |.....................| -0.9899 | -0.9826 | -0.9781 |...........|
#> | U| | 12.92 | -6.750 | 1574. | 222.8 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.750 | 1574. | 222.8 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 84| 116.81843 | -0.9576 | -0.7442 | 0.9999 | -0.7063 |
#> |.....................| -0.9921 | -0.9914 | -0.9838 |...........|
#> | U| | 13.06 | -6.748 | 1574. | 221.4 |
#> |.....................| 1.257 | 1.944 | 2.668 |...........|
#> | X| | 13.06 | -6.748 | 1574. | 221.4 |
#> |.....................| 1.257 | 1.944 | 2.668 |...........|
#> | 85| 116.81105 | -0.9680 | -0.7554 | 0.9999 | -0.7111 |
#> |.....................| -0.9899 | -0.9714 | -0.9781 |...........|
#> | U| | 12.92 | -6.750 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.954 | 2.670 |...........|
#> | X| | 12.92 | -6.750 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.954 | 2.670 |...........|
#> | 86| 116.81165 | -0.9751 | -0.7316 | 0.9996 | -0.7103 |
#> |.....................| -0.9917 | -0.9881 | -0.9751 |...........|
#> | U| | 12.83 | -6.746 | 1574. | 220.5 |
#> |.....................| 1.257 | 1.946 | 2.671 |...........|
#> | X| | 12.83 | -6.746 | 1574. | 220.5 |
#> |.....................| 1.257 | 1.946 | 2.671 |...........|
#> | 87| 116.81195 | -0.9648 | -0.7475 | 0.9995 | -0.7148 |
#> |.....................| -0.9932 | -0.9787 | -0.9759 |...........|
#> | U| | 12.97 | -6.748 | 1573. | 219.5 |
#> |.....................| 1.256 | 1.951 | 2.671 |...........|
#> | X| | 12.97 | -6.748 | 1573. | 219.5 |
#> |.....................| 1.256 | 1.951 | 2.671 |...........|
#> | 88| 116.81082 | -0.9685 | -0.7440 | 0.9999 | -0.7098 |
#> |.....................| -0.9899 | -0.9815 | -0.9740 |...........|
#> | U| | 12.92 | -6.748 | 1574. | 220.6 |
#> |.....................| 1.258 | 1.949 | 2.671 |...........|
#> | X| | 12.92 | -6.748 | 1574. | 220.6 |
#> |.....................| 1.258 | 1.949 | 2.671 |...........|
#> | 89| 116.81087 | -0.9695 | -0.7432 | 0.9996 | -0.7098 |
#> |.....................| -0.9891 | -0.9816 | -0.9807 |...........|
#> | U| | 12.91 | -6.748 | 1574. | 220.6 |
#> |.....................| 1.259 | 1.949 | 2.669 |...........|
#> | X| | 12.91 | -6.748 | 1574. | 220.6 |
#> |.....................| 1.259 | 1.949 | 2.669 |...........|
#> | 90| 116.81130 | -0.9685 | -0.7446 | 0.9999 | -0.7112 |
#> |.....................| -0.9899 | -0.9830 | -0.9787 |...........|
#> | U| | 12.92 | -6.748 | 1574. | 220.3 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.748 | 1574. | 220.3 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 91| 116.81164 | -0.9662 | -0.7428 | 0.9996 | -0.7106 |
#> |.....................| -0.9900 | -0.9819 | -0.9776 |...........|
#> | U| | 12.95 | -6.748 | 1574. | 220.5 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | X| | 12.95 | -6.748 | 1574. | 220.5 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | 92| 116.81143 | -0.9675 | -0.7443 | 0.9994 | -0.7111 |
#> |.....................| -0.9891 | -0.9823 | -0.9776 |...........|
#> | U| | 12.93 | -6.748 | 1573. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1573. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 93| 116.81209 | -0.9679 | -0.7438 | 1.000 | -0.7111 |
#> |.....................| -0.9891 | -0.9818 | -0.9775 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 94| 116.80996 | -0.9678 | -0.7441 | 0.9999 | -0.7111 |
#> |.....................| -0.9908 | -0.9822 | -0.9779 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.3 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.3 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | 95| 116.80988 | -0.9676 | -0.7439 | 0.9998 | -0.7106 |
#> |.....................| -0.9902 | -0.9831 | -0.9772 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.5 |
#> |.....................| 1.258 | 1.948 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.5 |
#> |.....................| 1.258 | 1.948 | 2.670 |...........|
#> | 96| 116.81174 | -0.9677 | -0.7433 | 0.9999 | -0.7117 |
#> |.....................| -0.9899 | -0.9823 | -0.9776 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.2 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.2 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 97| 116.81124 | -0.9670 | -0.7445 | 1.000 | -0.7107 |
#> |.....................| -0.9899 | -0.9823 | -0.9779 |...........|
#> | U| | 12.94 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | X| | 12.94 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | 98| 116.81634 | -0.9677 | -0.7447 | 1.001 | -0.7110 |
#> |.....................| -0.9899 | -0.9824 | -0.9776 |...........|
#> | U| | 12.93 | -6.748 | 1575. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1575. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | 99| 116.81130 | -0.9682 | -0.7439 | 0.9997 | -0.7102 |
#> |.....................| -0.9900 | -0.9821 | -0.9776 |...........|
#> | U| | 12.92 | -6.748 | 1574. | 220.5 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.748 | 1574. | 220.5 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | 100| 116.81111 | -0.9682 | -0.7432 | 0.9999 | -0.7109 |
#> |.....................| -0.9900 | -0.9827 | -0.9775 |...........|
#> | U| | 12.92 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | X| | 12.92 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#>
#> | #| Function Val. |nlmixr2Pre_tka |nlmixr2Pre_tcl |nlmixr2Pre_tv |nlmixr2Pre_add.sd |
#> |.....................| o1 | o2 | o3 |...........|
#> | 101| 116.81079 | -0.9675 | -0.7444 | 0.9997 | -0.7113 |
#> |.....................| -0.9903 | -0.9820 | -0.9770 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.3 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.3 |
#> |.....................| 1.258 | 1.949 | 2.670 |...........|
#> | 102| 116.81138 | -0.9677 | -0.7440 | 0.9999 | -0.7110 |
#> |.....................| -0.9899 | -0.9823 | -0.9776 |...........|
#> | U| | 12.93 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> | X| | 12.93 | -6.748 | 1574. | 220.4 |
#> |.....................| 1.259 | 1.949 | 2.670 |...........|
#> calculating covariance matrix
#> [====|====|====|====|====|====|====|====|====|====] 0:00:01
#> done
#> → loading into symengine environment...
#> → pruning branches (`if`/`else`) of full model...
#> ✔ done
#> [====|====|====|====|====|====|====|====|====|====
#> → calculate sensitivities
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
#> → calculate ∂(f)/∂(η)
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
#> → finding duplicate expressions in inner model...
#> → finding duplicate expressions in EBE model...
#> → compiling inner model...
#> ✔ done
#> → finding duplicate expressions in FD model...
#> → compiling EBE model...
#> ✔ done
#> → compiling events FD model...
#> ✔ done
#> Updated original fit object fit
fit$covMethod
#> [1] "precondition"preconditionFit() modifies the original fit
object in-place: after the call, fit$cov,
fit$parFixedDf, and fit$covMethod all reflect
the preconditioned covariance. The function returns the preconditioned
covariance matrix invisibly.
Controlling the amount of re-estimation
The estType argument determines how much of the model is
re-estimated on the reparameterized problem:
estType |
What is re-estimated | When to use |
|---|---|---|
"full" (default) |
Outer and inner iterations (theta, ETA) | When you suspect the original estimates may have converged to a local minimum |
"posthoc" |
Inner iterations only (ETA, given theta) | When you trust the theta estimates but want a better covariance |
"none" |
Nothing – only the covariance matrix is re-computed | Fastest; good for a quick diagnostic check |
# Shown for reference -- each call re-estimates and modifies `fit` in place, so
# run whichever one you want against a freshly fitted model.
# Only recompute the covariance matrix (fastest)
preconditionFit(fit, estType = "none")
# Fix theta, re-estimate ETAs, then compute covariance
preconditionFit(fit, estType = "posthoc")
# Full re-estimation on the reparameterized model (default)
preconditionFit(fit, estType = "full")Retrying until convergence: ntry
The inner loop of preconditionFit() iterates the
preconditioning until the reparameterized problem achieves a
"r,s" covariance (the most reliable type). If that target
is not reached within ntry attempts the function stops with
an error. The default is ntry = 10.
# Allow up to 20 attempts before giving up
preconditionFit(fit, ntry = 20L)If preconditionFit() fails even with more tries, the R
matrix itself may be too poorly determined for preconditioning to help.
In that case inspect the model for identifiability problems or consider
likelihood profiling (profile(fit)) instead of Wald-based
confidence intervals.
Switching between covariance estimates
preconditionFit() stores the preconditioned covariance
alongside any previously computed covariances in
fit$covList. You can inspect what is available and switch
between them with setCov():
# See which covariance estimates are stored
names(fit$covList)
#> [1] "r,s"
# Switch back to the standard r,s covariance
setCov(fit, "r,s")
# Switch to the preconditioned covariance
setCov(fit, "precondition")After setCov() the fit object is updated in-place and
the displayed parameter table (fit$parFixedDf) reflects the
selected covariance.
Worked example: comparing SEs before and after preconditioning
library(nlmixr2extra)
# a second, untouched fit: `fit` above was already preconditioned in place
fitCompare := nlmixr2(oneCompartment, data = nlmixr2data::theo_sd,
est = "focei", control = list(print = 0))
# Record the original parameter table
dfBefore <- fitCompare$parFixedDf
cat("Covariance method before:", fitCompare$covMethod, "\n")
#> Covariance method before: r,s
# Apply preconditioning (only recompute covariance, do not re-estimate)
invisible(preconditionFit(fitCompare, estType = "none"))
#> calculating covariance matrix
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
dfAfter <- fitCompare$parFixedDf
cat("Covariance method after:", fitCompare$covMethod, "\n")
#> Covariance method after: precondition
# Compare standard errors
cbind(
SE_before = dfBefore$SE,
SE_after = dfAfter$SE,
row.names = rownames(dfBefore)
)
#> SE_before SE_after row.names
#> tka "0.23191882512431" "0.0208583066703708" "tka"
#> tcl "0.169047370259566" "0.00930104347467145" "tcl"
#> tv "0.0405121558563634" "0.00896090979904507" "tv"
#> add.sd "0.0730247302042821" "0.0856314070278401" "add.sd"The point estimates (Estimate,
Back-transformed) and the random-effects summaries
(BSV(CV%), Shrink(SD)%) are identical before
and after – only the covariance-derived quantities (SE, %RSE, confidence
intervals) change.
When to use preconditionFit()
Use preconditionFit() when:
-
fit$covMethodis not"r,s"after a FOCEI fit - Standard errors look implausibly large or contain NaN
- You want a publication-quality covariance estimate and are willing to spend extra computation time
It is not needed when FOCEI already produces a "r,s"
covariance and the SEs look reasonable. For models where identifiability
is in doubt (very large %RSE for multiple parameters simultaneously),
consider likelihood profiling rather than trying to stabilize a
structurally unreliable covariance.
Requirements
preconditionFit() requires:
- A fit produced by FOCEI (or a method that stores an R matrix in
fit$R). SAEM fits do not store an R matrix by default; callfit <- nlmixr2(model, data, est = "focei", ...)first, or usegetVarCov(saemFit)to trigger covariance computation. - The
nlmixr2extrapackage to be loaded.