GithubHelp home page GithubHelp logo

nlmixr2 / nlmixr2est Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 218.61 MB

nlmixr2 estimation routines

Home Page: https://nlmixr2.github.io/nlmixr2est/

License: GNU General Public License v2.0

R 19.61% NSIS 0.03% Rich Text Format 69.63% Shell 0.01% C++ 9.89% C 0.83%

nlmixr2est's Introduction

nlmixr2

Cran updating status R-CMD-check Codecov test coverage CodeFactor CRAN version CRAN total downloads CRAN total downloads

The vision of nlmixr2 is to develop a R-based open-source nonlinear mixed-effects modeling software package that can compete with commercial pharmacometric tools and is suitable for regulatory submissions.

In short, the goal of nlmixr2 is to support easy and robust nonlinear mixed effects models in R. This is supported by our team and advisory committee

Blog for more information

For more information about ongoing development, best practices, and news about nlmixr2, please see the nlmixr2 blog.

Installation

For all versions of R, we need to have a compiler setup to run nlmixr2 and rxode2

Windows compilation tools setup

For Windows the compilers come from RTools. Download and the install the version of RTools for your version of R from https://cran.r-project.org/bin/windows/Rtools/

Mac compilation tools setup

To setup the mac compilers, simply

  1. Install Xcode from app store

  2. Install gfortran:

    1. Download and install from https://mac.r-project.org/tools/

    2. Add gfortran directory to the path with: export PATH=$PATH:/usr/local/gfortran/bin

R package installation

Installation nlmixr2 itself is easiest the latest version of R because no further compilation is required and all supporting packages are available. From R, run:

install.packages("nlmixr2",dependencies = TRUE)

For R-4.0.x and R-4.1.x, the symengine package will need to be downgraded to run in those earlier R versions. This can be done by:

# install.packages("remotes")
remotes::install_version("symengine", version = "0.1.6")

followed by:

install.packages("nlmixr2",dependencies = TRUE)

Checking installation

You can check that your installation is likely setup correctly with the following command after installing the nlmixr2 package:

nlmixr2::nlmixr2CheckInstall()

Development version installation

Once the compilers are setup and a compatible version of symengine is installed, you can install the development version of nlmixr2 and its nlmixr2-family dependencies either by using the r-universe or by installing manually.

Install using the R universe

For many people this is the fastest way to install the development version of nlmixr2 since it provides binaries for mac, windows for the latest and last version of R (no need to wait for a compile).

install.packages(c("dparser", "nlmixr2data", "lotri", "rxode2ll",
                   "rxode2parse", "rxode2random", "rxode2et",
                   "rxode2", "nlmixr2est", "nlmixr2extra", "nlmixr2plot",
                   "nlmixr2"),
                 repos = c('https://nlmixr2.r-universe.dev',
                           'https://cloud.r-project.org'))

If you are using a Ubuntu latest flavor (at the time of this writing jammy) you can also use the binaries (though if you use bspm you should install any dependencies first to reduce your computation time)

# bspm::disable() # if you are using r2u or other ubuntu binary for CRAN
oldOptions <- options()

options(repos=c(
  linux = 'https://nlmixr2.r-universe.dev/bin/linux/jammy/4.2/',
  sources = 'https://nlmixr2.r-universe.dev',
  cran = 'https://cloud.r-project.org'
))
install.packages(c("dparser", "nlmixr2data", "lotri", "rxode2ll",
                   "rxode2parse", "rxode2random", "rxode2et",
                   "rxode2", "nlmixr2est", "nlmixr2extra", "nlmixr2plot",
                   "nlmixr2"))

options(oldOptions)
#bspm::enable()

Support packages from the R universe can also be installed for the packages in the nlmixr2 domain:

install.packages(c("xpose.nlmixr2", # Additional goodness of fit plots
                                    # baesd on xpose
                   "nlmixr2targets", # Simplify work with the
                                     # `targets` package
                   "babelmixr2", # Convert/run from nlmixr2-based
                                 # models to NONMEM, Monolix, and
                                 # initialize models with PKNCA
                   "nonmem2rx", # Convert from NONMEM to
                                # rxode2/nlmixr2-based models
                   "nlmixr2lib", # a model library and model
                                 # modification functions that
                                 # complement model piping
                   "nlmixr2rpt" # Automated Microsoft Word and
                                # PowerPoint reporting for nlmixr2
                   ),
                 repos = c('https://nlmixr2.r-universe.dev',
                           'https://cloud.r-project.org'))

# Some additional packages outside of the `nlmixr2.r-univers.dev`
# install.packages("remotes")
remotes::install_github("ggPMXdevelopment/ggPMX") # Goodness of fit plots
remotes::install_github("RichardHooijmaijers/shinyMixR") # Shiny run manager (like Piranha)

For Ubuntu latest it is similar

# bspm::disable() # if you are using r2u or other ubuntu binary for CRAN
oldOptions <- options()

options(repos=c(
  linux = 'https://nlmixr2.r-universe.dev/bin/linux/jammy/4.2/',
  sources = 'https://nlmixr2.r-universe.dev',
  cran = 'https://cloud.r-project.org'
))
install.packages(c("xpose.nlmixr2", "nlmixr2targets", "babelmixr2", "nonmem2rx", "nlmixr2lib", "nlmixr2rpt"))

options(oldOptions)
#bspm::enable()
# install.packages("remotes")
remotes::install_github("ggPMXdevelopment/ggPMX") # Goodness of fit plots
remotes::install_github("RichardHooijmaijers/shinyMixR") # Shiny run manager (like Piranha)

Install using remotes

This is sure to give the latest development version

# install.packages("remotes")
remotes::install_github("nlmixr2/dparser-R")
remotes::install_github("nlmixr2/nlmixr2data")
remotes::install_github("nlmixr2/lotri")
remotes::install_github("nlmixr2/rxode2ll")
remotes::install_github("nlmixr2/rxode2parse")
remotes::install_github("nlmixr2/rxode2random")
remotes::install_github("nlmixr2/rxode2et")
remotes::install_github("nlmixr2/rxode2")
remotes::install_github("nlmixr2/nlmixr2est")
remotes::install_github("nlmixr2/nlmixr2extra")
remotes::install_github("nlmixr2/nlmixr2plot")
remotes::install_github("nlmixr2/nlmixr2")

Optional supporting packages can be installed like so:

# install.packages("remotes")
# Goodness of fit plots
remotes::install_github("ggPMXdevelopment/ggPMX")
# Additional goodness of fit plots
remotes::install_github("nlmixr2/xpose.nlmixr2")
# Shiny run manager (like Piranha)
remotes::install_github("RichardHooijmaijers/shinyMixR")
# Simplify work with the `targets` package
remotes::install_github("nlmixr2/nlmixr2targets")
# Convert/run from nlmixr2-based models to NONMEM, Monolix, and initialize
# models with PKNCA
remotes::install_github("nlmixr2/babelmixr2")
# Convert from NONMEM to rxode2/nlmixr2-based models
remotes::install_github("nlmixr2/nonmem2rx")
# A library of models and model modification functions
remotes::install_github("nlmixr2/nlmixr2lib")
# Automated Microsoft Word and PowerPoint reporting for nlmixr2
remotes::install_github("nlmixr2/nlmixr2rpt")

Refreshing the installation with the latest CRAN version

If you have difficulties due to errors while compiling models, it may be useful to re-install all of nlmixr2 and its dependencies. For development versions, please use the remotes::install_github() or the install.package() with the r-universe above. For the stable version, please use the following command:

install.packages(c("dparser", "lotri", "rxode2ll", "rxode2parse",
                   "rxode2random", "rxode2et", "rxode2",
                   "nlmixr2data", "nlmixr2est", "nlmixr2extra",
                   "nlmixr2plot", "nlmixr2"))

Example

This is a basic example which shows you how to solve a common problem:

library(nlmixr2)

## The basic model consists of an ini block that has initial estimates
one.compartment <- function() {
  ini({
    tka <- log(1.57); label("Ka")
    tcl <- log(2.72); label("Cl")
    tv <- log(31.5); label("V")
    eta.ka ~ 0.6
    eta.cl ~ 0.3
    eta.v ~ 0.1
    add.sd <- 0.7
  })
  # and a model block with the error specification and model specification
  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)
  })
}

## The fit is performed by the function nlmixr/nlmixr2 specifying the model, data and estimate
fit <- nlmixr2(one.compartment, theo_sd,  est="saem", saemControl(print=0))
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00
print(fit)
#> ── nlmixr² SAEM OBJF by FOCEi approximation ──
#> 
#>  Gaussian/Laplacian Likelihoods: AIC() or $objf etc. 
#>  FOCEi CWRES & Likelihoods: addCwres() 
#> 
#> ── Time (sec $time): ──
#> 
#>            setup covariance  saem table compress    other
#> elapsed 0.000891   0.020004 2.792 0.043    0.017 2.397105
#> 
#> ── Population Parameters ($parFixed or $parFixedDf): ──
#> 
#>        Parameter  Est.     SE %RSE Back-transformed(95%CI) BSV(CV%) Shrink(SD)%
#> tka           Ka  0.46  0.196 42.7       1.58 (1.08, 2.33)     71.9    -0.291% 
#> tcl           Cl  1.01 0.0839 8.29       2.75 (2.34, 3.25)     27.0      3.42% 
#> tv             V  3.45 0.0469 1.36       31.6 (28.8, 34.7)     14.0      10.7% 
#> add.sd           0.694                               0.694                     
#>  
#>   Covariance Type ($covMethod): linFim
#>   No correlations in between subject variability (BSV) matrix
#>   Full BSV covariance ($omega) or correlation ($omegaR; diagonals=SDs) 
#>   Distribution stats (mean/skewness/kurtosis/p-value) available in $shrink 
#>   Censoring ($censInformation): No censoring
#> 
#> ── Fit Data (object is a modified tibble): ──
#> # A tibble: 132 × 19
#>   ID     TIME    DV  PRED    RES IPRED   IRES  IWRES eta.ka eta.cl   eta.v    cp
#>   <fct> <dbl> <dbl> <dbl>  <dbl> <dbl>  <dbl>  <dbl>  <dbl>  <dbl>   <dbl> <dbl>
#> 1 1      0     0.74  0     0.74   0     0.74   1.07  0.0988 -0.484 -0.0843  0   
#> 2 1      0.25  2.84  3.27 -0.433  3.87 -1.03  -1.49  0.0988 -0.484 -0.0843  3.87
#> 3 1      0.57  6.57  5.85  0.718  6.82 -0.247 -0.356 0.0988 -0.484 -0.0843  6.82
#> # ℹ 129 more rows
#> # ℹ 7 more variables: depot <dbl>, center <dbl>, ka <dbl>, cl <dbl>, v <dbl>,
#> #   tad <dbl>, dosenum <dbl>

Plotting outputs

Base R Graphics

You can use the built-in plot with the fit and it will produce a standard set of goodness of fit plots:

pdf(file="myplots.pdf")
plot(fit)
dev.off()

xpose.nlmixr2

The {xpose.nlmixr2} package extends xpose support for nlmixr2. You simply need to convert the fit results into an xpose database:

library(xpose.nlmixr2)
xpdb = xpose_data_nlmixr(fit)

Then you can use any of the xpose functions for generating goodness of fit plots:

library(xpose)
plt <- dv_vs_ipred(xpdb)

ggPMX

Another option is to use the ggPMX package. You first create a ggPMX controller object from the nlmixr fit object. Then that controller object can be used to generate figures:

library(ggPMX)
ctr = pmx_nlmixr(fit)
pmx_plot_dv_ipred(ctr)

nlmixr2est's People

Contributors

baltcir1 avatar bgoodri avatar billdenney avatar iamstein avatar john-harrold avatar jranke avatar kestrel99 avatar kiranmaiganji avatar lionel- avatar mattfidler avatar mntrame avatar rikschoemaker avatar vupil avatar wwang-at-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nlmixr2est's Issues

Documentation: Expand documentation for installation

I think that it would help users to take them from a new computer to installation of nlmixr2 in an instruction documentation.

Most users come from a background where they will have R installed, but at least some will come with a computer with nothing. Also, getting the tool-chain setup correctly can be a stumbling block for some users. While there is lots of documentation out there of how to do these things, helping users find it would be useful.

The reason I'm writing this is because I wanted to look up the best way to install R on my new Linux system. I have it automated for other systems, but I had to look at my own instructions to ensure that I got it right.

I would assume that there would be three main sections (Linux, Windows, and Mac) and within each main section, there could be flavors (Linux distribution, Windows version, Mac version/processor type). Ideally, where feasible, we could also have a shell script/batch file to help along the way.

test-table-cmt.R Crashes on Windows

When running test-table-cmt.R on Windows, I get a crash.

There is a lot of text like "unhandled error message: EE:[lsoda] trouble from intdy, itask = 1, tout = 1 @(lsoda.c:820)" with about 8-9 garbled ASCII characters after.

I will try to isolate it a bit more, but I may need to reboot, so I didn't want to lose the text above.

Long-term Feature Request: Separate functionality into separate, focused packages

For this initial issue, the goal is to spark discussion and not to say that the initial thoughts here are the final way that things should go.

The intent of this issue is to seed discussion of a potential to separate nlmixr2 into smaller, more focused packages to aid in code maintenance, testing, and to long-term help simplify the project overall (with a short-term larger effort to do the separation).

From the user side, the goal would be to make nlmixr2 the single package where we would point users for using the package and for documentation. (Meaning, that we would not typically point someone to rxode2 or another package for how to do a typical user-focused task. Advanced users could go deeper into the structure, as needed.)

From the developer side, the packages would be made smaller and more modular allowing easier code modification with clearer interfaces between parts of the code, and to have a clear delineation of package hierarchy and purpose. Testing could be more focused to a specific package, and therefore faster and easier to diagnose issues as they arise. (The separation should try to minimize developer efforts to jump between packages to fix something, hopefully. But, this could be a problem that comes up.)

The structure that I would propose is below with the goal that nlmixr2 would end up with relatively little code itself and it would mainly gather the other packages together in the right ways to make it simpler for the user. What nlmixr2 would have is a lot of documentation.

The nesting of the list is intended to show dependencies between packages, and there should be no circular dependencies (i.e. where a package ends up indirectly depending on itself). All package names should be considered placeholders for clarity (I'm not great at naming things, the rules on package naming are "The mandatory ‘Package’ field gives the name of the package. This should contain only (ASCII) letters, numbers and dot, have at least two characters and start with a letter and not end in a dot. If it needs explaining, this should be done in the ‘Description’ field (and not the ‘Title’ field)." (https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#The-DESCRIPTION-file)).

  • nlmixr2 (the package that glues everything together and is the main user-facing package)
    • nlmixr2.estimation (estimation functions)
      • rxode2 (integration functions)
        • lotri (the UI)
    • nlmixr2.plot (plot nlmixr2 objects in a useful way)
      • nlmixr2.estimate
    • nlmixr2.support (a package focused on tools that are estimation-like that live on top of estimation such as bootstrap, automatic covariate search, likelihood profiling, etc. I think of this as something similar to what PsN does for NONMEM)
      • nlmixr2.estimate
    • rxode2.plot (plot rxode2 objects in a useful way-- possibly integrated into nlmixr2.plot)
      • rxode2

Is nlmixr2Test necessary?

Can we rework the tests and remove the nlmixr2Test() function? Specifically, I think that it does what is now done with testthat::skip_on_cran() and testthat::skip_on_ci() and those would likely make it easier for others to create and review tests..

npde

# possible first bad commit: [ec19bc0136baf4c7142461c13f5483223b39b6c5] Bug fix for saem calc cwres
# possible first bad commit: [3832a95bd1ca55f9f4fbf58469dcf03dfce48016] Fix for single fixed parHist not being dropped
# possible first bad commit: [1f403c7ed2a387e862520f6c123196f2fdf56cf7] Compress and remove nlmixr objects; fix shrink
# possible first bad commit: [5c0355526edfd5c46578ff03cac17feb4585313b] Bug fix for ofv calculation post fit

compare

nlmixr2/nlmixr2@6a406cb...main

Fit isn't always updating the ui

  library(nlmixr2)
  library(testthat)

  one.compartment <- function() {
    ini({
      tka <- 0.45 ; label("Log Ka")
      tcl <- 1 ; label("Log Cl")
      tv <- 3.45 ; label("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)
    })
  }

  fit2 <-
    suppressMessages(suppressWarnings(
      nlmixr(
        one.compartment, theo_sd,
        est = "focei",
        control = list(print = 0)
      )
    ))
#> Error in .foceiFitInternal(.env) : 
#>   function 'rx_e1caa57e2688eec6e55c65c2fd471aa6__calc_lhs' not provided by package 'rx_e1caa57e2688eec6e55c65c2fd471aa6_'
#> Error in .foceiFitInternal(.ret) : 
#>   function 'rx_e1caa57e2688eec6e55c65c2fd471aa6__calc_lhs' not provided by package 'rx_e1caa57e2688eec6e55c65c2fd471aa6_'
#> Error in .foceiFitInternal(.ret) : 
#>   function 'rx_e1caa57e2688eec6e55c65c2fd471aa6__calc_lhs' not provided by package 'rx_e1caa57e2688eec6e55c65c2fd471aa6_'
#> Error in .foceiFitInternal(.ret) : 
#>   function 'rx_e1caa57e2688eec6e55c65c2fd471aa6__calc_lhs' not provided by package 'rx_e1caa57e2688eec6e55c65c2fd471aa6_'
#> Error : Could not fit data
#>   function 'rx_e1caa57e2688eec6e55c65c2fd471aa6__calc_lhs' not provided by package 'rx_e1caa57e2688eec6e55c65c2fd471aa6_'
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> calculating covariance matrix
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> done

  expect_equal(fit2$theta, fit2$ui$theta)
#> Error: fit2$theta not equal to fit2$ui$theta.
#> 4/4 mismatches (average diff: 0.0123)
#> [1] 0.471 - 0.45 ==  0.02055
#> [2] 1.013 - 1.00 ==  0.01275
#> [3] 3.460 - 3.45 ==  0.01029
#> [4] 0.695 - 0.70 == -0.00544

Created on 2022-02-03 by the reprex package (v2.0.0)

For release

  • foce works
  • foi works
  • fo works
  • posthoc works
  • focei works
  • focei works without etas
  • saem works
  • saem likelihood methods
  • saem standard error works
  • saem doesn't always add cwres
  • when cwres is added shows focei instead of focei likelihood
  • saem returns nlmixr style object
  • saem fix omega check
  • nlme works
  • bootstrapFit works
  • bootplot works
  • npde works
  • tidy works
  • Cache focei setup
  • covarSearchAuto
  • preconditionFit
  • piping
  • saem warns on bounded variables

Didn't provide function

function 'rx_0ba247452048de33b1ffb8af516714fc__calc_lhs' not provided by package 'rx_0ba247452048de33b1ffb8af516714fc_'

C code:

#define _getRxSolve_ _rxcab04b4462ee4d241d801cb77619ccdf142
#define simeps _rxcab04b4462ee4d241d801cb77619ccdf143
#define simeta _rxcab04b4462ee4d241d801cb77619ccdf144
#define _solveData _rxcab04b4462ee4d241d801cb77619ccdf145
#define _assign_ptr _rxcab04b4462ee4d241d801cb77619ccdf146
#define _rxRmModelLib _rxcab04b4462ee4d241d801cb77619ccdf147
#define _rxGetModelLib _rxcab04b4462ee4d241d801cb77619ccdf148
#define _old_c _rxcab04b4462ee4d241d801cb77619ccdf149
#define _ptrid _rxcab04b4462ee4d241d801cb77619ccdf150
#define _rxIsCurrentC _rxcab04b4462ee4d241d801cb77619ccdf151
#define _sumPS _rxcab04b4462ee4d241d801cb77619ccdf152
#define _prodPS _rxcab04b4462ee4d241d801cb77619ccdf153
#define _prodType _rxcab04b4462ee4d241d801cb77619ccdf154
#define _sumType _rxcab04b4462ee4d241d801cb77619ccdf155
#define _update_par_ptr _rxcab04b4462ee4d241d801cb77619ccdf156
#define _getParCov _rxcab04b4462ee4d241d801cb77619ccdf157
#define linCmtA _rxcab04b4462ee4d241d801cb77619ccdf158
#define linCmtC _rxcab04b4462ee4d241d801cb77619ccdf159
#define linCmtB _rxcab04b4462ee4d241d801cb77619ccdf160
#define _rxode2_rxAssignPtr _rxcab04b4462ee4d241d801cb77619ccdf161
#define _rxQr _rxcab04b4462ee4d241d801cb77619ccdf162
#define phi _rxcab04b4462ee4d241d801cb77619ccdf163
#define logit _rxcab04b4462ee4d241d801cb77619ccdf164
#define expit _rxcab04b4462ee4d241d801cb77619ccdf165
#define gammap _rxcab04b4462ee4d241d801cb77619ccdf166
#define gammaq _rxcab04b4462ee4d241d801cb77619ccdf167
#define lowergamma _rxcab04b4462ee4d241d801cb77619ccdf168
#define uppergamma _rxcab04b4462ee4d241d801cb77619ccdf169
#define gammapInv _rxcab04b4462ee4d241d801cb77619ccdf170
#define gammapDer _rxcab04b4462ee4d241d801cb77619ccdf171
#define gammapInva _rxcab04b4462ee4d241d801cb77619ccdf172
#define gammaqInv _rxcab04b4462ee4d241d801cb77619ccdf173
#define gammaqInva _rxcab04b4462ee4d241d801cb77619ccdf174
#define rxnorm _rxcab04b4462ee4d241d801cb77619ccdf175
#define rxnormV _rxcab04b4462ee4d241d801cb77619ccdf176
#define rxbinom _rxcab04b4462ee4d241d801cb77619ccdf177
#define rxcauchy _rxcab04b4462ee4d241d801cb77619ccdf178
#define rxchisq _rxcab04b4462ee4d241d801cb77619ccdf179
#define rxexp _rxcab04b4462ee4d241d801cb77619ccdf180
#define rxf _rxcab04b4462ee4d241d801cb77619ccdf181
#define rxgeom _rxcab04b4462ee4d241d801cb77619ccdf182
#define rxgamma _rxcab04b4462ee4d241d801cb77619ccdf183
#define rxbeta _rxcab04b4462ee4d241d801cb77619ccdf184
#define rxpois _rxcab04b4462ee4d241d801cb77619ccdf185
#define rxt_ _rxcab04b4462ee4d241d801cb77619ccdf186
#define rxunif _rxcab04b4462ee4d241d801cb77619ccdf187
#define rxweibull _rxcab04b4462ee4d241d801cb77619ccdf188
#define rinorm _rxcab04b4462ee4d241d801cb77619ccdf189
#define rinormV _rxcab04b4462ee4d241d801cb77619ccdf190
#define ribinom _rxcab04b4462ee4d241d801cb77619ccdf191
#define ricauchy _rxcab04b4462ee4d241d801cb77619ccdf192
#define richisq _rxcab04b4462ee4d241d801cb77619ccdf193
#define riexp _rxcab04b4462ee4d241d801cb77619ccdf194
#define rif _rxcab04b4462ee4d241d801cb77619ccdf195
#define rigeom _rxcab04b4462ee4d241d801cb77619ccdf196
#define rigamma _rxcab04b4462ee4d241d801cb77619ccdf197
#define ribeta _rxcab04b4462ee4d241d801cb77619ccdf198
#define ripois _rxcab04b4462ee4d241d801cb77619ccdf199
#define rit_ _rxcab04b4462ee4d241d801cb77619ccdf200
#define riunif _rxcab04b4462ee4d241d801cb77619ccdf201
#define riweibull _rxcab04b4462ee4d241d801cb77619ccdf202
#define _compareFactorVal _rxcab04b4462ee4d241d801cb77619ccdf203
#define _sum _rxcab04b4462ee4d241d801cb77619ccdf204
#define _sign _rxcab04b4462ee4d241d801cb77619ccdf205
#define _prod _rxcab04b4462ee4d241d801cb77619ccdf206
#define _max _rxcab04b4462ee4d241d801cb77619ccdf207
#define _min _rxcab04b4462ee4d241d801cb77619ccdf208
#define _transit4P _rxcab04b4462ee4d241d801cb77619ccdf209
#define _transit3P _rxcab04b4462ee4d241d801cb77619ccdf210
#define _assignFuns0 _rxcab04b4462ee4d241d801cb77619ccdf211
#define _assignFuns _rxcab04b4462ee4d241d801cb77619ccdf212
#include <rxode2_model_shared.h>
#define __MAX_PROD__ 0
#define _CMT CMT
#define _SYNC_simeps_ for (int _svari=_solveData->neps; _svari--;){  if (_solveData->svar[_svari] == 0) {_THETA_1_ = _PP[0];};   if (_solveData->svar[_svari] == 1) {_THETA_2_ = _PP[1];};   if (_solveData->svar[_svari] == 2) {_ETA_1_ = _PP[2];}; }
#define _SYNC_simeta_ for (int _ovari=_solveData->neta; _ovari--;){  if (_solveData->ovar[_ovari] == 0) {_THETA_1_ = _PP[0];};   if (_solveData->ovar[_ovari] == 1) {_THETA_2_ = _PP[1];};   if (_solveData->ovar[_ovari] == 2) {_ETA_1_ = _PP[2];}; }
#include "extraC.h"
_getRxSolve_t _getRxSolve_;
_simfun simeps;
_simfun simeta;
rx_solve *_solveData=NULL;
rxode2_assign_ptr _assign_ptr=NULL;
_rxRmModelLibType _rxRmModelLib=NULL;
_rxGetModelLibType _rxGetModelLib=NULL;
rxode2_ode_solver_old_c _old_c=NULL;
rxode2_fn0i _ptrid=NULL;
_rxIsCurrentC_type _rxIsCurrentC=NULL;
_rxSumType _sumPS=NULL;
_rxProdType _prodPS=NULL;
rxode2_fn0i _prodType=NULL;
rxode2_fn0i _sumType=NULL;
_update_par_ptr_p _update_par_ptr=NULL;
_getParCov_p _getParCov=NULL;
linCmtA_p linCmtA;
linCmtA_p linCmtC;
linCmtB_p linCmtB;
_rx_asgn _rxode2_rxAssignPtr=NULL;
_rx_asgn _rxQr=NULL;
rxode2_fn phi;
rxode2_fn3 logit;
rxode2_fn3 expit;
rxode2_fn2 gammap;
rxode2_fn2 gammaq;
rxode2_fn2 lowergamma;
rxode2_fn2 uppergamma;
rxode2_fn2 gammapInv;
rxode2_fn2 gammapDer;
rxode2_fn2 gammapInva;
rxode2_fn2 gammaqInv;
rxode2_fn2 gammaqInva;
rxode2i_fn2 rxnorm;
rxode2i_fn2 rxnormV;
rxode2i_rxbinom rxbinom;
rxode2i_fn2 rxcauchy;
rxode2i_fn rxchisq;
rxode2i_fn rxexp;
rxode2i_fn2 rxf;
rxode2i_ifn rxgeom;
rxode2i_fn2 rxgamma;
rxode2i_fn2 rxbeta;
rxode2i_ifn rxpois;
rxode2i_fn rxt_;
rxode2i_fn2 rxunif;
rxode2i_fn2 rxweibull;
rxode2i2_fn2 rinorm;
rxode2i2_fn2 rinormV;
rxode2i2_ribinom ribinom;
rxode2i2_fn2 ricauchy;
rxode2i2_fn richisq;
rxode2i2_fn riexp;
rxode2i2_fn2 rif;
rxode2i2_ifn rigeom;
rxode2i2_fn2 rigamma;
rxode2i2_fn2 ribeta;
rxode2i2_ifn ripois;
rxode2i2_fn rit_;
rxode2i2_fn2 riunif;
rxode2i2_fn2 riweibull;
rxode2_compareFactorVal_fn _compareFactorVal;
double _prod(double *input, double *p, int type, int n, ...){
  va_list valist;
  va_start(valist, n);
  for (unsigned int i = 0; i < n; i++){
    input[i] = va_arg(valist, double);
  }
  va_end(valist);
  return _prodPS(input, p, n, type);
}
double _sum(double *input, double *pld, int m, int type, int n, ...){
  va_list valist;
  va_start(valist, n);
  for (unsigned int i = 0; i < n; i++){
    input[i] = va_arg(valist, double);
  }
  va_end(valist);
  double ret = _sumPS(input, n, pld, m, type);
  if (type == 2 && m < 0){
    for (int i = -m; i--;){
      pld[i] = 0.0;
    }
  }
  return ret;
}
double _sign(unsigned int n, ...) {
  va_list valist;
  va_start(valist, n);
  double s = 1;
  for (unsigned int i = 0; i < n; i++) {
    s = sign(va_arg(valist, double))*s;
    if (s == 0){
      break;
    }
  }
  va_end(valist);
  return s;
}
double _max(unsigned int n, ...) {
  va_list valist;
  va_start(valist, n);
  double mx = NA_REAL;
  double tmp = 0;
  if (n >= 1){
    mx = va_arg(valist, double);
    for (unsigned int i = 1; i < n; i++) {
      tmp = va_arg(valist, double);
      if (tmp>mx) mx=tmp;
    }
    va_end(valist);
  }
  return mx;
}
double _min(unsigned int n, ...){
  va_list valist;
  va_start(valist, n);
  double mn = NA_REAL;
  double tmp = 0;
  if (n >= 1){
    mn = va_arg(valist, double);
    for (unsigned int i = 1; i < n; i++){
      tmp = va_arg(valist, double);
      if (tmp<mn) mn=tmp;
    }
    va_end(valist);
  }
  return mn;
}
double _transit4P(double t, unsigned int id, double n, double mtt, double bio){
  double ktr = (n+1)/mtt;
  double lktr = log(n+1)-log(mtt);
  double tc = (t-(_solveData->subjects[id].tlast));
  return exp(log(bio*(_solveData->subjects[id].podo))+lktr+n*(lktr+log(tc))-ktr*(tc)-lgamma1p(n));
}
double _transit3P(double t, unsigned int id, double n, double mtt){
  double ktr = (n+1)/mtt;
  double lktr = log(n+1)-log(mtt);
  double tc = (t-(_solveData->subjects[id].tlast));
  return exp(log(_solveData->subjects[id].podo)+lktr+n*(lktr+log(tc))-ktr*(tc)-lgamma1p(n));
}
void _assignFuns0() {
  _getRxSolve_ = (_getRxSolve_t) R_GetCCallable("rxode2","getRxSolve_");
  _assign_ptr=(rxode2_assign_ptr) R_GetCCallable("rxode2","rxode2_assign_fn_pointers");
  _rxRmModelLib=(_rxRmModelLibType) R_GetCCallable("rxode2","rxRmModelLib");
  _rxGetModelLib=(_rxGetModelLibType) R_GetCCallable("rxode2","rxGetModelLib");
  _rxode2_rxAssignPtr=(_rx_asgn)R_GetCCallable("rxode2","_rxode2_rxAssignPtr");
  _rxQr=(_rx_asgn)R_GetCCallable("rxode2","_rxode2_rxQr");
  _rxIsCurrentC = (_rxIsCurrentC_type)R_GetCCallable("rxode2","rxIsCurrentC");
  _sumPS  = (_rxSumType) R_GetCCallable("PreciseSums","PreciseSums_sum_r");
  _prodPS = (_rxProdType) R_GetCCallable("PreciseSums","PreciseSums_prod_r");
  _prodType=(rxode2_fn0i)R_GetCCallable("PreciseSums", "PreciseSums_prod_get");
  _sumType=(rxode2_fn0i)R_GetCCallable("PreciseSums", "PreciseSums_sum_get");
  _ptrid=(rxode2_fn0i)R_GetCCallable("rxode2", "rxode2_current_fn_pointer_id");
  linCmtA=(linCmtA_p)R_GetCCallable("rxode2", "linCmtA");
  linCmtB=(linCmtB_p)R_GetCCallable("rxode2", "linCmtB");
  linCmtC=(linCmtA_p)R_GetCCallable("rxode2", "linCmtC");
    
  rxnorm = (rxode2i_fn2)R_GetCCallable("rxode2", "rxnorm");
  rxnormV = (rxode2i_fn2)R_GetCCallable("rxode2", "rxnormV");
  rxbinom = (rxode2i_rxbinom)R_GetCCallable("rxode2","rxbinom") ;
  rxcauchy = (rxode2i_fn2)R_GetCCallable("rxode2","rxcauchy") ;
  rxchisq = (rxode2i_fn)R_GetCCallable("rxode2","rxchisq") ;
  rxexp = (rxode2i_fn)R_GetCCallable("rxode2","rxexp");
  rxf = (rxode2i_fn2)R_GetCCallable("rxode2","rxf") ;
  rxgeom = (rxode2i_ifn)R_GetCCallable("rxode2","rxgeom") ;
  rxgamma = (rxode2i_fn2)R_GetCCallable("rxode2","rxgamma") ;
  rxbeta = (rxode2i_fn2)R_GetCCallable("rxode2","rxbeta") ;
  rxpois = (rxode2i_ifn)R_GetCCallable("rxode2","rxpois") ;
  rxt_ = (rxode2i_fn)R_GetCCallable("rxode2","rxt_") ;
  rxunif = (rxode2i_fn2)R_GetCCallable("rxode2","rxunif") ;
  rxweibull = (rxode2i_fn2)R_GetCCallable("rxode2","rxweibull");
  rinorm = (rxode2i2_fn2)R_GetCCallable("rxode2", "rinorm");
  rinormV = (rxode2i2_fn2)R_GetCCallable("rxode2", "rinormV");
  ribinom = (rxode2i2_ribinom)R_GetCCallable("rxode2","ribinom") ;
  ricauchy = (rxode2i2_fn2)R_GetCCallable("rxode2","ricauchy") ;
  richisq = (rxode2i2_fn)R_GetCCallable("rxode2","richisq") ;
  riexp = (rxode2i2_fn)R_GetCCallable("rxode2","riexp");
  rif = (rxode2i2_fn2)R_GetCCallable("rxode2","rif") ;
  rigeom = (rxode2i2_ifn)R_GetCCallable("rxode2","rigeom") ;
  rigamma = (rxode2i2_fn2)R_GetCCallable("rxode2","rigamma") ;
  ribeta = (rxode2i2_fn2)R_GetCCallable("rxode2","ribeta") ;
  ripois = (rxode2i2_ifn)R_GetCCallable("rxode2","ripois") ;
  rit_ = (rxode2i2_fn)R_GetCCallable("rxode2","rit_") ;
  riunif = (rxode2i2_fn2)R_GetCCallable("rxode2","riunif") ;
  riweibull = (rxode2i2_fn2)R_GetCCallable("rxode2","riweibull");
    
  phi = (rxode2_fn)R_GetCCallable("rxode2","phi");
  gammap = (rxode2_fn2) R_GetCCallable("rxode2","gammap");
  gammaq = (rxode2_fn2) R_GetCCallable("rxode2","gammaq");
  gammapInv = (rxode2_fn2) R_GetCCallable("rxode2","gammapInv");
  gammapInva = (rxode2_fn2) R_GetCCallable("rxode2","gammapInva");
  gammaqInv = (rxode2_fn2) R_GetCCallable("rxode2","gammaqInv");
  gammaqInva = (rxode2_fn2) R_GetCCallable("rxode2","gammaqInva");
  uppergamma = (rxode2_fn2) R_GetCCallable("rxode2","uppergamma");
  lowergamma = (rxode2_fn2) R_GetCCallable("rxode2","lowergamma");
  gammapDer  = (rxode2_fn2) R_GetCCallable("rxode2","gammapDer");
  logit = (rxode2_fn3) R_GetCCallable("rxode2", "logit");
  expit = (rxode2_fn3) R_GetCCallable("rxode2", "expit");
  simeta =(_simfun) R_GetCCallable("rxode2", "simeta");
  simeps =(_simfun) R_GetCCallable("rxode2", "simeps");
  _compareFactorVal=(rxode2_compareFactorVal_fn) R_GetCCallable("rxode2", "compareFactorVal");
  _update_par_ptr = (_update_par_ptr_p) R_GetCCallable("rxode2","_update_par_ptr");
  _getParCov = (_getParCov_p) R_GetCCallable("rxode2","_getParCov");
  _solveData = _getRxSolve_();
}
void _assignFuns() {
  if (_assign_ptr == NULL){
    _assignFuns0();
  }
}
extern void  rx_0ba247452048de33b1ffb8af516714fc__ode_solver_solvedata (rx_solve *solve){
  _solveData = solve;
}
extern rx_solve *rx_0ba247452048de33b1ffb8af516714fc__ode_solver_get_solvedata(){
  return _solveData;
}
SEXP rx_0ba247452048de33b1ffb8af516714fc__model_vars();


// prj-specific differential eqns
void rx_0ba247452048de33b1ffb8af516714fc__dydt(int *_neq, double __t, double *__zzStateVar__, double *__DDtStateVar__)
{
  int _itwhile = 0;
  (void)_itwhile;
  int _cSub = _neq[1];
  double t = __t + _solveData->subjects[_neq[1]].curShift;
  (void)t;
    double _THETA_1_;
  double _THETA_2_;
  double _ETA_1_;
  double rx_yj___;
  double rx_lambda___;
  double rx_hi___;
  double rx_low___;
  double rx_expr_0;
  double rx_expr_1;
  double rx_pred_;
  double rx_r_;

  (void)t;
  (void)_THETA_1_;
  (void)_THETA_2_;
  (void)_ETA_1_;
  (void)rx_yj___;
  (void)rx_lambda___;
  (void)rx_hi___;
  (void)rx_low___;
  (void)rx_expr_0;
  (void)rx_expr_1;
  (void)rx_pred_;
  (void)rx_r_;

  rx_pred_ = _PL[0];
  rx_r_ = _PL[1];

  _update_par_ptr(__t, _cSub, _solveData, _idx);
  _THETA_1_ = _PP[0];
  _THETA_2_ = _PP[1];
  _ETA_1_ = _PP[2];


  rx_yj_ =2;
  rx_lambda_ =1;
  rx_hi_ =1;
  rx_low_ =0;
  rx_expr_0 =exp(_ETA_1_);
  rx_expr_1 =exp(-t*rx_expr_0*_THETA_1_);
  rx_pred_=10*rx_expr_1;
  rx_r_=100*Rx_pow_di((rx_expr_1*_THETA_2_),2);
  (&_solveData->subjects[_cSub])->dadt_counter[0]++;
}

// Jacobian derived vars
void rx_0ba247452048de33b1ffb8af516714fc__calc_jac(int *_neq, double __t, double *__zzStateVar__, double *__PDStateVar__, unsigned int __NROWPD__) {
  int _itwhile = 0;
  (void)_itwhile;
    int _cSub=_neq[1];
  double t = __t + _solveData->subjects[_neq[1]].curShift;
  (void)t;
    (&_solveData->subjects[_cSub])->jac_counter[0]++;
}
// Functional based initial conditions.
void rx_0ba247452048de33b1ffb8af516714fc__inis(int _cSub, double *__zzStateVar__){
  int _itwhile = 0;
  (void)_itwhile;
  
}
// prj-specific derived vars
void rx_0ba247452048de33b1ffb8af516714fc__calc_lhs(int _cSub, double __t, double *__zzStateVar__, double *_lhs) {
    int _itwhile = 0;
  (void)_itwhile;
  double t = __t + _solveData->subjects[_cSub].curShift;
  (void)t;
    double  __DDtStateVar_0__;
  double _THETA_1_;
  double _THETA_2_;
  double _ETA_1_;
  double rx_yj___;
  double rx_lambda___;
  double rx_hi___;
  double rx_low___;
  double rx_expr_0;
  double rx_expr_1;
  double rx_pred_;
  double rx_r_;

  (void)t;
  (void)__DDtStateVar_0__;
  (void)_THETA_1_;
  (void)_THETA_2_;
  (void)_ETA_1_;
  (void)rx_yj___;
  (void)rx_lambda___;
  (void)rx_hi___;
  (void)rx_low___;
  (void)rx_expr_0;
  (void)rx_expr_1;
  (void)rx_pred_;
  (void)rx_r_;

  rx_pred_ = _PL[0];
  rx_r_ = _PL[1];

  _update_par_ptr(__t, _cSub, _solveData, _idx);
  _THETA_1_ = _PP[0];
  _THETA_2_ = _PP[1];
  _ETA_1_ = _PP[2];


  rx_yj_ =2;
  rx_lambda_ =1;
  rx_hi_ =1;
  rx_low_ =0;
  rx_expr_0 =exp(_ETA_1_);
  rx_expr_1 =exp(-t*rx_expr_0*_THETA_1_);
  rx_pred_=10*rx_expr_1;
  rx_r_=100*Rx_pow_di((rx_expr_1*_THETA_2_),2);

  _lhs[0]=rx_pred_;
  _lhs[1]=rx_r_;
}
// Functional based bioavailability
double rx_0ba247452048de33b1ffb8af516714fc__F(int _cSub,  int _cmt, double _amt, double __t, double *__zzStateVar__){
 return _amt;
}
// Functional based absorption lag
double rx_0ba247452048de33b1ffb8af516714fc__Lag(int _cSub,  int _cmt, double __t, double *__zzStateVar__){
 return __t;
}
// Modeled zero-order rate
double rx_0ba247452048de33b1ffb8af516714fc__Rate(int _cSub,  int _cmt, double _amt, double __t, double *__zzStateVar__){
 return 0.0;
}
// Modeled zero-order duration
double rx_0ba247452048de33b1ffb8af516714fc__Dur(int _cSub,  int _cmt, double _amt, double __t){
 return 0.0;
}
// Model Times
void rx_0ba247452048de33b1ffb8af516714fc__mtime(int _cSub, double *_mtime){
}
// Matrix Exponential (0)
void rx_0ba247452048de33b1ffb8af516714fc__ME(int _cSub, double _t, double __t, double *_mat, const double *__zzStateVar__){
  int _itwhile = 0;
  (void)_itwhile;
  double t = __t + _solveData->subjects[_cSub].curShift;
  (void)t;
  }
// Inductive linearization Matf
void rx_0ba247452048de33b1ffb8af516714fc__IndF(int _cSub, double _t, double __t, double *_matf){
 int _itwhile = 0;
  (void)_itwhile;
  double t = __t + _solveData->subjects[_cSub].curShift;
  (void)t;
  }
extern SEXP rx_0ba247452048de33b1ffb8af516714fc__model_vars(){
  int pro=0;
  SEXP _mv = PROTECT(_rxGetModelLib("rx_0ba247452048de33b1ffb8af516714fc__model_vars"));pro++;
  if (!_rxIsCurrentC(_mv)){
    SEXP hash    = PROTECT(allocVector(STRSXP, 1));pro++;
#define __doBuf__  sprintf(buf, "un]\"BAAA@QRtHACAAAAAAAC\"bAAA+:g6JitUQ.GAPl/@_hOYOADX]W)vVE*FBY,^Ddb0`EM}rgvip#dwPz8zTj*!f%%=GviPB0wHP$II5Y\?ZX,NWfu<GidZ+$TD*F@w#TFtoCA~lo!$5$L_@H+{Vu#QRwS**.m}etP|@=IK{y\?<Q!hN3hLoDrZ_Xg[=i@I/a*@S@0Qo@$_l<Ug_1L_l&#\?5]g/i[x%%Ci[5)PleON(q.!v#22iWPq9LaGQ]rWIC%%$Zg|;XR]IQneLQMyf0n6<,>h;yZFYi6CkQymfLu_\?(\"|H5w>]1uK$e:kai\?u}7K3Vvp0FI27#=bi(So7bR:=MadcWK:(`#Zi<hjWd5~x5H<[`Tfht4DD%%Q08;`Q%%a+2Hi2([g.S6nB:};QUCC\">VhQtERNQn*(+[9a5tSt4dqYkY9P,F(wLh8p~2)&Ay.$=aOBf.\"PSdxM<+^LfuL<`&tdrp|774y|lRMrsu3*KrrBlu<*x6E>+}~Z:`\"xBHe4_p+c>olB~AEA^CcS_3dL&yZZ7_qcF#74=%%}[Z1Pg$K1+T~z;do_zU*lTwH\"@Ykl<|nzgjhq;D3@SB%%>1L@+*5zS!xulCb(AN6IIIEVoAkPdP)az*lGF`%%t*B7swImDBB(s(b#xR*riOw2r^b]oI;:LI&q#/RrdYF14`f^O6}M<pcJ&#W^#fy%%73lK!JH(g|]J*[s5aT~g%%}E+U\"6t,8hsYR.|HWrhJXh);VAT$}\?kiCPQfxfuf&7o,,j|$+;r#t[[4`|g5DD34uL36XEYnL))O)E3\"dHC2uxYcnG=FriXLl0!/KKU\"Q5.+eRVXB*zukqgMEHGT5XT$L/d]}I9Y.>[$)7}s)Up`<ckBZcG<{#bzIjRd<lT!Oi~!W|hz/RPc;>kbSjUfKh$\?f*S&xc..yoe{k]9pZO|)8cEW]d>LX8Obkd5L^wez]4*[jD<^O_E@D/4&[t{W16W^4}czh[ZBrPz00}6CYV[r@5Jeb&3v\"J^B4hCsaawuf$c!q7IQmpX_]>tZ$T:a#L~Ic&cW5zy}\?u$fQYwj!p\?KZawR(qV<7C5Poo>};N&pdqJvW<0c|gL|+<DYSXHFM%%zo5z79H_Ki=:qN_cH2N83_I");
    char buf[1127];
    __doBuf__
#undef __doBuf__
    SET_STRING_ELT(hash, 0, mkChar(buf));
    SEXP lst      = PROTECT(_rxQr(hash));pro++;
    _assign_ptr(lst);
    UNPROTECT(pro);
    return lst;
  } else {
    UNPROTECT(pro);
    return _mv;
  }
}
extern void rx_0ba247452048de33b1ffb8af516714fc__dydt_lsoda(int *neq, double *t, double *A, double *DADT)
{
  rx_0ba247452048de33b1ffb8af516714fc__dydt(neq, *t, A, DADT);
}
extern int rx_0ba247452048de33b1ffb8af516714fc__dydt_liblsoda(double __t, double *y, double *ydot, void *data)
{
  int *neq = (int*)(data);
  rx_0ba247452048de33b1ffb8af516714fc__dydt(neq, __t, y, ydot);
  return(0);
}
extern void rx_0ba247452048de33b1ffb8af516714fc__calc_jac_lsoda(int *neq, double *t, double *A,int *ml, int *mu, double *JAC, int *nrowpd){
  // Update all covariate parameters
  rx_0ba247452048de33b1ffb8af516714fc__calc_jac(neq, *t, A, JAC, *nrowpd);
}

//Create function to call from R's main thread that assigns the required functions. Sometimes they don't get assigned.
extern void rx_0ba247452048de33b1ffb8af516714fc__assignFuns(){
  _assignFuns();
}

//Initialize the dll to match rxode2's calls
void R_init0_rx_0ba247452048de33b1ffb8af516714fc_(){
  // Get C callables on load; Otherwise it isn't thread safe
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__assignFuns", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__assignFuns);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__inis",(DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__inis);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__dydt",(DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__dydt);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__calc_lhs",(DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__calc_lhs);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__calc_jac",(DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__calc_jac);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__dydt_lsoda", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__dydt_lsoda);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__calc_jac_lsoda", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__calc_jac_lsoda);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__ode_solver_solvedata", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__ode_solver_solvedata);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__ode_solver_get_solvedata", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__ode_solver_get_solvedata);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__F", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__F);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__Lag", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__Lag);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__Rate", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__Rate);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__Dur", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__Dur);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__mtime", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__mtime);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__ME", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__ME);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__IndF", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__IndF);
  R_RegisterCCallable("rx_0ba247452048de33b1ffb8af516714fc_","rx_0ba247452048de33b1ffb8af516714fc__dydt_liblsoda", (DL_FUNC) rx_0ba247452048de33b1ffb8af516714fc__dydt_liblsoda);
}
//Initialize the dll to match rxode2's calls
void R_init_rx_0ba247452048de33b1ffb8af516714fc_(DllInfo *info){
  // Get C callables on load; Otherwise it isn't thread safe
  R_init0_rx_0ba247452048de33b1ffb8af516714fc_();
  static const R_CallMethodDef callMethods[]  = {
    {"rx_0ba247452048de33b1ffb8af516714fc__model_vars", (DL_FUNC) &rx_0ba247452048de33b1ffb8af516714fc__model_vars, 0},
    {NULL, NULL, 0}
  };

  R_registerRoutines(info, NULL, callMethods, NULL, NULL);
  R_useDynamicSymbols(info,FALSE);
  _assignFuns0();

}

void R_unload_rx_0ba247452048de33b1ffb8af516714fc_ (DllInfo *info){
  // Free resources required for single subject solve.
  SEXP _mv = PROTECT(_rxGetModelLib("rx_0ba247452048de33b1ffb8af516714fc__model_vars"));
  if (!isNull(_mv)){
    _rxRmModelLib("rx_0ba247452048de33b1ffb8af516714fc__model_vars");
  }
  UNPROTECT(1);
}

The function should be provided according to the C code.

Convert output to a message to make it silent

As with rxode2, I'm trying to make successful testing in nlmixr2 silent when successful. There are two outputs that are not silent with suppressMessages(suppressWarnings(...)).

calculating covariance matrix
done

I think that they come from the following two lines of code. Can you please convert these to messages?

https://github.com/nlmixr2/nlmixr2/blob/11cb1fb214fcf8e7237e14e908bcf199cdfb7f8a/src/inner.cpp#L4928
https://github.com/nlmixr2/nlmixr2/blob/11cb1fb214fcf8e7237e14e908bcf199cdfb7f8a/src/inner.cpp#L6230

Remove SnakeCharmR?

There are some references to SnakeCharmR within the nlmixr2 code. I think that can be removed, is that correct? (I'm happy to make the PR, if that's correct, but I don't want to break something accidentally.)

print()

$omega prints because "some items were not mu referenced" when all items are mu referenced

Crash in test-sens-fd.R

On Linux, with current github main:

> devtools::load_all()
[New Thread 0x7ffff3d65700 (LWP 760898)]
[Detaching after vfork from child process 760899]
ℹ Loading nlmixr2
testthat::test_> testthat::test_file("tests/testthat/test-sens-fd.R")
[Detaching after vfork from child process 760901]

[Detaching after vfork from child process 760903]
══ Testing test-sens-fd.R ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ][Detaching after fork from child process 760905]
[Detaching after fork from child process 760926]
[Detaching after fork from child process 760947]
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ]
Thread 1 "R" received signal SIGSEGV, Segmentation fault.
0x00007fffedca6570 in ?? ()
(gdb) bt
#0  0x00007fffedca6570 in ?? ()
#1  0x00007fffedd9474b in gill83pred (w=0, cid=0, eta=<optimized out>, fp=0x7ffffff1fdb8) at inner.cpp:734
#2  gill83etaF (fp=0x7ffffff1fdb8, eta=<optimized out>, cid=0) at inner.cpp:744
#3  0x00007fffeddb2ffc in gill83 (hf=0x7ffffff1fe50, hphif=0x7ffffff1fe58, df=df@entry=0x7ffffff1fe60, df2=df2@entry=0x7ffffff1fe68, ef=ef@entry=0x7ffffff1fe70,
    theta=theta@entry=0x555567559838, cpar=1, epsR=<optimized out>, K=<optimized out>, gillStep=4, fTol=0, cid=0, gill83fn=0x7fffedd946b0 <gill83etaF(double*, double*, int)>)
    at inner.cpp:2220
#4  0x00007fffeddb42f4 in calcGradForEtaGeneral (eta=eta@entry=0x555567559838, aEps=<optimized out>, cpar=cpar@entry=1, cid=cid@entry=0, w=w@entry=0) at inner.cpp:760
#5  0x00007fffeddc7d99 in calcGradForEtaF (cid=0, cpar=1, aEps=<optimized out>, eta=0x555567559838) at inner.cpp:1000
#6  likInner0 (eta=0x555567559838, id=0) at inner.cpp:1000
#7  0x00007fffeddca398 in innerCost (ind=ind@entry=0x7fffeedad4e8 <indic>, n=n@entry=0x7ffffff209c4, x=x@entry=0x555567559838, f=f@entry=0x7ffffff209e0,
    g=g@entry=0x555567559658, ti=ti@entry=0x7ffffff209d8, tr=0x7ffffff209dc, td=0x7ffffff209f0, id=0x7ffffff209bc) at inner.cpp:1338
#8  0x00007fffeed9924a in n1qn1a_ (simul=0x7fffeddca310 <innerCost(int*, int*, double*, double*, double*, int*, float*, double*, int*)>, n=0x7ffffff209c4, x=0x555567559830,
    f=0x7ffffff209e0, g=0x555567559650, scale=0x555567559740, acc=0x7ffffff209e8, mode=0x7ffffff209c8, niter=0x7ffffff209cc, nsim=0x7ffffff209d0, iprint=0x7ffffff209d4,
    h__=0x55556755a1f8, d__=0x55556755a210, w=0x55556755a220, xa=0x55556755a230, ga=0x55556755a240, xb=0x55556755a250, gb=0x55556755a260, izs=0x7ffffff209d4,
    rzs=0x7ffffff209d8, dzs=0x7ffffff209e8, id=0x7ffffff209bc) at n1qn1_all.c:226
#9  0x00007fffeed9a80d in n1qn1_ (simul=<optimized out>, n=<optimized out>, x=<optimized out>, f=<optimized out>, g=<optimized out>, var=<optimized out>, eps=0x7ffffff209e8,
    mode=0x7ffffff209c8, niter=0x7ffffff209cc, nsim=0x7ffffff209d0, imp=0x7ffffff209d4, zm=0x55556755a1f8, izs=<optimized out>, rzs=<optimized out>, dzs=<optimized out>,
    id=0x7ffffff209bc) at n1qn1_all.c:151
#10 0x00007fffeddca729 in innerOpt1 (id=<optimized out>, likId=0) at inner.cpp:1448
#11 0x00007fffeddcc545 in innerOptId (id=<optimized out>) at inner.cpp:1907
#12 innerOpt () at inner.cpp:1957
#13 0x00007fffeddcd9ff in foceiLik0 (theta=0x555566f229f8) at inner.cpp:1981
#14 foceiOfv0 (theta=0x555566f229f8) at inner.cpp:2013
#15 0x00007fffeddcfea2 in foceiOuterFinal (x=<optimized out>, e=...) at inner.cpp:3513
#16 0x00007fffeddd3907 in foceiOuter (e=...) at /home/bill/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include/Rcpp/vector/Vector.h:334
#17 0x00007fffedddde7a in foceiFitCpp_ (e=...) at inner.cpp:6101
#18 0x00007fffede58b74 in _nlmixr2_foceiFitCpp_ (eSEXP=0x5555645b93e8) at /home/bill/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include/Rcpp/as.h:151
#19 0x00007ffff7bf5530 in ?? () from /usr/lib/R/lib/libR.so
#20 0x00007ffff7bf5a65 in ?? () from /usr/lib/R/lib/libR.so
#21 0x00007ffff7c4c083 in Rf_eval () from /usr/lib/R/lib/libR.so
#22 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#23 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#24 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#25 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#26 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#27 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#28 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#29 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#30 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#31 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#32 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#33 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#34 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#35 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#36 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#37 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#38 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#39 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#40 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
--Type <RET> for more, q to quit, c to continue without paging--c
#41 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#42 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#43 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#44 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#45 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#46 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#47 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#48 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#49 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#50 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#51 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#52 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#53 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#54 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#55 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#56 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#57 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#58 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#59 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#60 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#61 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#62 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#63 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#64 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#65 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#66 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#67 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#68 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#69 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#70 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#71 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#72 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#73 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#74 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#75 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#76 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#77 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#78 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#79 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#80 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#81 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#82 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#83 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#84 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#85 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#86 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#87 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#88 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#89 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#90 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#91 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#92 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#93 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#94 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#95 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#96 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#97 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#98 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#99 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#100 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#101 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#102 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#103 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#104 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#105 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#106 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#107 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#108 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#109 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#110 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#111 0x00007ffff7c924f4 in ?? () from /usr/lib/R/lib/libR.so
#112 0x00007ffff7c92930 in ?? () from /usr/lib/R/lib/libR.so
#113 0x00007ffff7c92cf7 in ?? () from /usr/lib/R/lib/libR.so
#114 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#115 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#116 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#117 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#118 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#119 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#120 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#121 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#122 0x00007ffff7c4bc5f in Rf_eval () from /usr/lib/R/lib/libR.so
#123 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#124 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#125 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#126 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#127 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#128 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#129 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#130 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#131 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#132 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#133 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#134 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#135 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#136 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#137 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#138 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#139 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#140 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#141 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#142 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#143 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#144 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#145 0x00007ffff7c50ab2 in ?? () from /usr/lib/R/lib/libR.so
#146 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#147 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#148 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#149 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#150 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#151 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#152 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#153 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#154 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#155 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#156 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#157 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#158 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#159 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#160 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#161 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#162 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#163 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#164 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#165 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#166 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#167 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#168 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#169 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#170 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#171 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#172 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#173 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#174 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#175 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#176 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#177 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#178 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#179 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#180 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#181 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#182 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#183 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#184 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#185 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#186 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#187 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#188 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#189 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#190 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#191 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#192 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#193 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#194 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#195 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#196 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#197 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#198 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#199 0x00007ffff7c924f4 in ?? () from /usr/lib/R/lib/libR.so
#200 0x00007ffff7c92930 in ?? () from /usr/lib/R/lib/libR.so
#201 0x00007ffff7c92cf7 in ?? () from /usr/lib/R/lib/libR.so
#202 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#203 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#204 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#205 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#206 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#207 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#208 0x00007ffff7c50ab2 in ?? () from /usr/lib/R/lib/libR.so
#209 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#210 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#211 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#212 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#213 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#214 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#215 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#216 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#217 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#218 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#219 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#220 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#221 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#222 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#223 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#224 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#225 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#226 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#227 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#228 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#229 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#230 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#231 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#232 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#233 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#234 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#235 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#236 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#237 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#238 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#239 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#240 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#241 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#242 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#243 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#244 0x00007ffff7c51af2 in ?? () from /usr/lib/R/lib/libR.so
#245 0x00007ffff7c30ba1 in ?? () from /usr/lib/R/lib/libR.so
#246 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#247 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#248 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#249 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#250 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#251 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#252 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#253 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#254 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#255 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#256 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#257 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#258 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#259 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#260 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#261 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#262 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#263 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#264 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#265 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#266 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#267 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#268 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#269 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#270 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#271 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#272 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#273 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#274 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#275 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#276 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#277 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#278 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#279 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#280 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#281 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#282 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#283 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#284 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#285 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#286 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#287 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#288 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#289 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#290 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#291 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#292 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#293 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#294 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#295 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#296 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#297 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#298 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#299 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#300 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#301 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#302 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#303 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#304 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#305 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#306 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#307 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#308 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#309 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#310 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#311 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#312 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#313 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#314 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#315 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#316 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#317 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#318 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#319 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#320 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#321 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#322 0x00007ffff7c4f4f3 in ?? () from /usr/lib/R/lib/libR.so
#323 0x00007ffff7c4be3b in Rf_eval () from /usr/lib/R/lib/libR.so
#324 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#325 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#326 0x00007ffff7c51029 in R_forceAndCall () from /usr/lib/R/lib/libR.so
#327 0x00007ffff7b7a277 in ?? () from /usr/lib/R/lib/libR.so
#328 0x00007ffff7c9022f in ?? () from /usr/lib/R/lib/libR.so
#329 0x00007ffff7c30991 in ?? () from /usr/lib/R/lib/libR.so
#330 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#331 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#332 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#333 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#334 0x00007ffff7c52056 in ?? () from /usr/lib/R/lib/libR.so
#335 0x00007ffff7c30ba1 in ?? () from /usr/lib/R/lib/libR.so
#336 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#337 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#338 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#339 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#340 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#341 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#342 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#343 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#344 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#345 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#346 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#347 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#348 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#349 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#350 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#351 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#352 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#353 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#354 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#355 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#356 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#357 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#358 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#359 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#360 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#361 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#362 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#363 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#364 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#365 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#366 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#367 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#368 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#369 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#370 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#371 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#372 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#373 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#374 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#375 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#376 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#377 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#378 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#379 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#380 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#381 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#382 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#383 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#384 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#385 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#386 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#387 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#388 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#389 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#390 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#391 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#392 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#393 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#394 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#395 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#396 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#397 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#398 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#399 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#400 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#401 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#402 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#403 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#404 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#405 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#406 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#407 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#408 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#409 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#410 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#411 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#412 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#413 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#414 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#415 0x00007ffff7c51029 in R_forceAndCall () from /usr/lib/R/lib/libR.so
#416 0x00007ffff7b7a277 in ?? () from /usr/lib/R/lib/libR.so
#417 0x00007ffff7c9022f in ?? () from /usr/lib/R/lib/libR.so
#418 0x00007ffff7c30991 in ?? () from /usr/lib/R/lib/libR.so
#419 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#420 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#421 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#422 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#423 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#424 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#425 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#426 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#427 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#428 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#429 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#430 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#431 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#432 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#433 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#434 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#435 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#436 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#437 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#438 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#439 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#440 0x00007ffff7c4c3dc in ?? () from /usr/lib/R/lib/libR.so
#441 0x00007ffff7c4c888 in ?? () from /usr/lib/R/lib/libR.so
#442 0x00007ffff7c3725c in ?? () from /usr/lib/R/lib/libR.so
#443 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#444 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#445 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#446 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#447 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#448 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#449 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#450 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#451 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#452 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#453 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#454 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#455 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#456 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#457 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#458 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#459 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#460 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#461 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#462 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#463 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#464 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#465 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#466 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#467 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#468 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#469 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#470 0x00007ffff7c39296 in ?? () from /usr/lib/R/lib/libR.so
#471 0x00007ffff7c4b948 in Rf_eval () from /usr/lib/R/lib/libR.so
#472 0x00007ffff7c4d80f in ?? () from /usr/lib/R/lib/libR.so
#473 0x00007ffff7c4e702 in Rf_applyClosure () from /usr/lib/R/lib/libR.so
#474 0x00007ffff7c4bb6f in Rf_eval () from /usr/lib/R/lib/libR.so
#475 0x00007ffff7c7fe62 in Rf_ReplIteration () from /usr/lib/R/lib/libR.so
#476 0x00007ffff7c80200 in ?? () from /usr/lib/R/lib/libR.so
#477 0x00007ffff7c802c0 in run_Rmainloop () from /usr/lib/R/lib/libR.so
#478 0x000055555555509f in main ()
#479 0x00007ffff79290b3 in __libc_start_main (main=0x555555555080 <main>, argc=3, argv=0x7fffffffe3d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe3c8) at ../csu/libc-start.c:308
#480 0x00005555555550de in _start ()
(gdb)

Error running focei tests (test-focei-cens.R line 35)

Running the focei tests manually (current github versions of lotri/rxode2/nlmixr2), the line below gives this error:

>     f.focei <- .nlmixr(f, dat, "posthoc")
i parameter labels from comments will be replaced by 'label()'
> loading into symengine environment...
> pruning branches (`if`/`else`) of full model...
√ done
> calculate jacobian
>-------------------------------------------------]  00%; 0:00:00 
> calculate d(f)/d(eta)
[====|====|====|====|====|====|====|====|====|====] 100%; 0:00:00 
> finding duplicate expressions in inner model...
[====|====|====|====|====|====|====|====|====|====] 100%; 0:00:00 
> optimizing duplicate expressions in inner model...
[====|====|====|====|====|====|====|====|====|====] 100%; 0:00:00 
> finding duplicate expressions in EBE model...
[====|====|====|====|====|====|====|====|====|====] 100%; 0:00:00 
> optimizing duplicate expressions in EBE model...
[====|====|====|====|====|====|====|====|====|====] 100%; 0:00:00 
> compiling inner model...
√ done
> finding duplicate expressions in FD model...
[====|====|====|====|====|====|====|====|====|====] 100%; 0:00:00 
> compiling EBE model...
√ done
> compiling events FD model...
√ done
Error : cannot figure out get the control, add method for `nmObjHandleControlObject.posthoc`

https://github.com/nlmixr2/nlmixr2/blob/19bdc900dbd5cc04f236b6e50319442470cec1cb/tests/testthat/test-focei-cens.R#L35

evtM

in saem object remove add back
saem.cfg$evtM

It a duplicate of the data and a wate of space

focei-inner

Running test manually works, but testthat does not work.

test-npde.R Crashes on Windows

The error I see is below.

== Testing test-npde.R =========================================================

[ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]calculating covariance matrix
done

[ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ]calculating covariance matrix
done

error: Col::subvec(): indices out of bounds or incorrectly used
terminate called after throwing an instance of 'std::out_of_range'
  what():  Col::subvec(): indices out of bounds or incorrectly used

Exited with status 3.

sensitivites shouldn't be included and dosenum should be included

library(nlmixr2)

one.compartment <- 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)
  })
  keep = c("WT")
  drop = c("depot")
}

d <- theo_sd
d$WT2 <- d$WT + 0.5
d$WT3 <- d$WT + 0.4

fitF <- suppressMessages(nlmixr(one.compartment, d, est="focei"))
#> Warning: 'model({})' is not on the last line of the function, rearranging;
#> function cannot be called directly to produce model object
#> Error in .foceiFitInternal(.env) : 
#>   function 'rx_45ac41c577a2ba29e89450b54a29634a__calc_lhs' not provided by package 'rx_45ac41c577a2ba29e89450b54a29634a_'
#> Error in .foceiFitInternal(.ret) : 
#>   function 'rx_45ac41c577a2ba29e89450b54a29634a__calc_lhs' not provided by package 'rx_45ac41c577a2ba29e89450b54a29634a_'
#> Error in .foceiFitInternal(.ret) : 
#>   function 'rx_45ac41c577a2ba29e89450b54a29634a__calc_lhs' not provided by package 'rx_45ac41c577a2ba29e89450b54a29634a_'
#> Error in .foceiFitInternal(.ret) : 
#>   function 'rx_45ac41c577a2ba29e89450b54a29634a__calc_lhs' not provided by package 'rx_45ac41c577a2ba29e89450b54a29634a_'
#> Error : Could not fit data
#>   function 'rx_45ac41c577a2ba29e89450b54a29634a__calc_lhs' not provided by package 'rx_45ac41c577a2ba29e89450b54a29634a_'
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> [====|====|====|====|====|====|====|====|====|====] 0:00:00 
#> 
#> 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
#> Unscaled parameters for Omegas=chol(solve(omega));
#> Diagonals are transformed, as specified by foceiControl(diagXform=)
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    #| Objective Fun |       tka |       tcl |        tv |    add.sd |
#> |.....................|        o1 |        o2 |        o3 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    1|     133.56590 |    -1.000 |   -0.6333 |     1.000 |   -0.8333 |
#> |.....................|   -0.5425 |   -0.3992 |   -0.1145 |...........|
#> |    U|      133.5659 |    0.4500 |     1.000 |     3.450 |    0.7000 |
#> |.....................|     1.136 |     1.351 |     1.778 |...........|
#> |    X|      133.5659 |    0.4500 |     1.000 |     3.450 |    0.7000 |
#> |.....................|     1.136 |     1.351 |     1.778 |...........|
#> |    G|    Gill Diff. |   -0.9181 |    -1.098 |    -3.084 |     1.612 |
#> |.....................|    -11.78 |    -35.32 |    -34.77 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    2|     122.57782 |   -0.9820 |   -0.6118 |     1.060 |   -0.8649 |
#> |.....................|   -0.3120 |    0.2923 |    0.5661 |...........|
#> |    U|     122.57782 |    0.4680 |     1.021 |     3.510 |    0.6890 |
#> |.....................|     1.398 |     2.286 |     2.989 |...........|
#> |    X|     122.57782 |    0.4680 |     1.021 |     3.510 |    0.6890 |
#> |.....................|     1.398 |     2.286 |     2.989 |...........|
#> |    F| Forward Diff. |    -1.025 |     13.06 |     70.44 |    -5.150 |
#> |.....................|     13.47 |     16.67 |     14.04 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    3|     688.95772 |   -0.9582 |   -0.7845 |    0.1005 |   -0.8088 |
#> |.....................|   -0.3815 |    0.4179 |    0.7229 |...........|
#> |    U|     688.95772 |    0.4918 |    0.8489 |     2.551 |    0.7086 |
#> |.....................|     1.319 |     2.455 |     3.267 |...........|
#> |    X|     688.95772 |    0.4918 |    0.8489 |     2.551 |    0.7086 |
#> |.....................|     1.319 |     2.455 |     3.267 |...........|
#> |    4|     121.04582 |   -0.9807 |   -0.6290 |    0.9680 |   -0.8581 |
#> |.....................|   -0.3296 |    0.2705 |    0.5477 |...........|
#> |    U|     121.04582 |    0.4693 |     1.004 |     3.418 |    0.6913 |
#> |.....................|     1.378 |     2.256 |     2.956 |...........|
#> |    X|     121.04582 |    0.4693 |     1.004 |     3.418 |    0.6913 |
#> |.....................|     1.378 |     2.256 |     2.956 |...........|
#> |    F| Forward Diff. |     2.609 |    -7.519 |    -53.50 |    -2.815 |
#> |.....................|     13.10 |     15.87 |     9.348 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    5|     118.39772 |   -0.9855 |   -0.6247 |     1.018 |   -0.8475 |
#> |.....................|   -0.3720 |    0.2107 |    0.5037 |...........|
#> |    U|     118.39772 |    0.4645 |     1.009 |     3.468 |    0.6950 |
#> |.....................|     1.330 |     2.175 |     2.878 |...........|
#> |    X|     118.39772 |    0.4645 |     1.009 |     3.468 |    0.6950 |
#> |.....................|     1.330 |     2.175 |     2.878 |...........|
#> |    F| Forward Diff. |   -0.2842 |    0.1211 |     10.16 |    -1.770 |
#> |.....................|     5.917 |     10.77 |     6.694 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    6|     118.08181 |   -0.9839 |   -0.6217 |    0.9719 |   -0.8380 |
#> |.....................|   -0.4060 |    0.1423 |    0.4601 |...........|
#> |    U|     118.08181 |    0.4661 |     1.012 |     3.422 |    0.6984 |
#> |.....................|     1.291 |     2.083 |     2.800 |...........|
#> |    X|     118.08181 |    0.4661 |     1.012 |     3.422 |    0.6984 |
#> |.....................|     1.291 |     2.083 |     2.800 |...........|
#> |    F| Forward Diff. |    0.4316 |    -1.963 |    -40.47 |    0.3738 |
#> |.....................|     2.914 |     7.010 |     4.300 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    7|     117.01231 |   -0.9741 |   -0.6308 |     1.025 |   -0.8448 |
#> |.....................|   -0.4062 |   0.07405 |    0.4120 |...........|
#> |    U|     117.01231 |    0.4759 |     1.003 |     3.475 |    0.6960 |
#> |.....................|     1.291 |     1.991 |     2.715 |...........|
#> |    X|     117.01231 |    0.4759 |     1.003 |     3.475 |    0.6960 |
#> |.....................|     1.291 |     1.991 |     2.715 |...........|
#> |    F| Forward Diff. |   0.05258 |    -1.959 |     13.88 |    -1.873 |
#> |.....................|     2.580 |     2.285 |     1.304 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |    8|     117.58572 |   -0.9729 |   -0.5514 |     1.007 |   -0.8116 |
#> |.....................|   -0.4305 |   0.03891 |    0.3904 |...........|
#> |    U|     117.58572 |    0.4771 |     1.082 |     3.457 |    0.7076 |
#> |.....................|     1.263 |     1.943 |     2.676 |...........|
#> |    X|     117.58572 |    0.4771 |     1.082 |     3.457 |    0.7076 |
#> |.....................|     1.263 |     1.943 |     2.676 |...........|
#> |    9|     116.87866 |   -0.9740 |   -0.6168 |     1.007 |   -0.8377 |
#> |.....................|   -0.4127 |   0.06627 |    0.4073 |...........|
#> |    U|     116.87866 |    0.4760 |     1.017 |     3.457 |    0.6985 |
#> |.....................|     1.284 |     1.980 |     2.706 |...........|
#> |    X|     116.87866 |    0.4760 |     1.017 |     3.457 |    0.6985 |
#> |.....................|     1.284 |     1.980 |     2.706 |...........|
#> |    F| Forward Diff. |   -0.4976 |    0.4685 |    -3.031 |    0.7759 |
#> |.....................|     1.853 |     1.670 |    0.4445 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   10|     116.83107 |   -0.9653 |   -0.6209 |     1.012 |   -0.8492 |
#> |.....................|   -0.4313 |   0.05703 |    0.4106 |...........|
#> |    U|     116.83107 |    0.4847 |     1.012 |     3.462 |    0.6944 |
#> |.....................|     1.263 |     1.968 |     2.712 |...........|
#> |    X|     116.83107 |    0.4847 |     1.012 |     3.462 |    0.6944 |
#> |.....................|     1.263 |     1.968 |     2.712 |...........|
#> |    F| Forward Diff. |   -0.7711 |    0.1385 |     1.420 |   -0.7205 |
#> |.....................|   -0.6604 |    0.6335 |    0.6794 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   11|     116.87707 |   -0.9468 |   -0.6278 |     1.006 |   -0.8444 |
#> |.....................|   -0.4249 |   0.04545 |    0.4024 |...........|
#> |    U|     116.87707 |    0.5032 |     1.006 |     3.456 |    0.6961 |
#> |.....................|     1.270 |     1.952 |     2.697 |...........|
#> |    X|     116.87707 |    0.5032 |     1.006 |     3.456 |    0.6961 |
#> |.....................|     1.270 |     1.952 |     2.697 |...........|
#> |   12|     116.83535 |   -0.9629 |   -0.6213 |     1.007 |   -0.8470 |
#> |.....................|   -0.4293 |   0.05511 |    0.4086 |...........|
#> |    U|     116.83535 |    0.4871 |     1.012 |     3.457 |    0.6952 |
#> |.....................|     1.265 |     1.965 |     2.708 |...........|
#> |    X|     116.83535 |    0.4871 |     1.012 |     3.457 |    0.6952 |
#> |.....................|     1.265 |     1.965 |     2.708 |...........|
#> |   13|     116.83016 |   -0.9644 |   -0.6211 |     1.010 |   -0.8484 |
#> |.....................|   -0.4305 |   0.05630 |    0.4099 |...........|
#> |    U|     116.83016 |    0.4856 |     1.012 |     3.460 |    0.6947 |
#> |.....................|     1.263 |     1.967 |     2.711 |...........|
#> |    X|     116.83016 |    0.4856 |     1.012 |     3.460 |    0.6947 |
#> |.....................|     1.263 |     1.967 |     2.711 |...........|
#> |    F| Forward Diff. |     1.706 |    0.2300 |   0.09779 |   -0.5388 |
#> |.....................|   -0.4035 |    0.8455 |    0.5758 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   14|     116.82693 |   -0.9663 |   -0.6213 |     1.010 |   -0.8478 |
#> |.....................|   -0.4300 |   0.05533 |    0.4092 |...........|
#> |    U|     116.82693 |    0.4837 |     1.012 |     3.460 |    0.6949 |
#> |.....................|     1.264 |     1.965 |     2.710 |...........|
#> |    X|     116.82693 |    0.4837 |     1.012 |     3.460 |    0.6949 |
#> |.....................|     1.264 |     1.965 |     2.710 |...........|
#> |    F| Forward Diff. |     1.730 |    0.1245 |  -0.02322 |    0.1614 |
#> |.....................|    0.3253 |    0.8598 |    0.6653 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   15|     116.81955 |   -0.9704 |   -0.6216 |     1.010 |   -0.8482 |
#> |.....................|   -0.4308 |   0.05332 |    0.4076 |...........|
#> |    U|     116.81955 |    0.4796 |     1.012 |     3.460 |    0.6948 |
#> |.....................|     1.263 |     1.963 |     2.707 |...........|
#> |    X|     116.81955 |    0.4796 |     1.012 |     3.460 |    0.6948 |
#> |.....................|     1.263 |     1.963 |     2.707 |...........|
#> |    F| Forward Diff. |    0.9337 |   0.03274 |   0.02505 | -0.006094 |
#> |.....................|    0.1454 |    0.8285 |    0.5120 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   16|     116.81375 |   -0.9737 |   -0.6217 |     1.010 |   -0.8481 |
#> |.....................|   -0.4313 |   0.05036 |    0.4058 |...........|
#> |    U|     116.81375 |    0.4763 |     1.012 |     3.460 |    0.6948 |
#> |.....................|     1.263 |     1.959 |     2.703 |...........|
#> |    X|     116.81375 |    0.4763 |     1.012 |     3.460 |    0.6948 |
#> |.....................|     1.263 |     1.959 |     2.703 |...........|
#> |   17|     116.81362 |   -0.9770 |   -0.6202 |     1.010 |   -0.8537 |
#> |.....................|   -0.4288 |   0.03730 |    0.4014 |...........|
#> |    U|     116.81362 |    0.4730 |     1.013 |     3.460 |    0.6929 |
#> |.....................|     1.265 |     1.941 |     2.696 |...........|
#> |    X|     116.81362 |    0.4730 |     1.013 |     3.460 |    0.6929 |
#> |.....................|     1.265 |     1.941 |     2.696 |...........|
#> |    C| Central Diff. |    0.5009 |    0.1675 |    0.3618 |    -1.067 |
#> |.....................|   -0.2055 |   -0.3829 |  -0.06805 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   18|     116.83353 |   -0.9844 |   -0.6226 |     1.004 |   -0.8380 |
#> |.....................|   -0.4258 |   0.04293 |    0.4024 |...........|
#> |    U|     116.83353 |    0.4656 |     1.011 |     3.454 |    0.6984 |
#> |.....................|     1.269 |     1.949 |     2.697 |...........|
#> |    X|     116.83353 |    0.4656 |     1.011 |     3.454 |    0.6984 |
#> |.....................|     1.269 |     1.949 |     2.697 |...........|
#> |   19|     116.81312 |   -0.9791 |   -0.6209 |     1.008 |   -0.8492 |
#> |.....................|   -0.4279 |   0.03889 |    0.4016 |...........|
#> |    U|     116.81312 |    0.4709 |     1.012 |     3.458 |    0.6944 |
#> |.....................|     1.266 |     1.943 |     2.696 |...........|
#> |    X|     116.81312 |    0.4709 |     1.012 |     3.458 |    0.6944 |
#> |.....................|     1.266 |     1.943 |     2.696 |...........|
#> |    F| Forward Diff. |    0.3305 |   -0.2627 |    -2.002 |   -0.2729 |
#> |.....................|    0.7889 |    -1.020 |    0.2017 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   20|     116.81031 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04003 |    0.4014 |...........|
#> |    U|     116.81031 |    0.4705 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81031 |    0.4705 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    F| Forward Diff. |   -0.8990 |    0.6526 |    0.3873 |   -0.5624 |
#> |.....................|   -0.3223 |  -0.09240 |   -0.3058 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   21|     116.81138 |   -0.9783 |   -0.6222 |     1.010 |   -0.8473 |
#> |.....................|   -0.4284 |   0.04026 |    0.4020 |...........|
#> |    U|     116.81138 |    0.4717 |     1.011 |     3.460 |    0.6951 |
#> |.....................|     1.266 |     1.945 |     2.697 |...........|
#> |    X|     116.81138 |    0.4717 |     1.011 |     3.460 |    0.6951 |
#> |.....................|     1.266 |     1.945 |     2.697 |...........|
#> |   22|     116.81067 |   -0.9788 |   -0.6211 |     1.010 |   -0.8485 |
#> |.....................|   -0.4286 |   0.04010 |    0.4016 |...........|
#> |    U|     116.81067 |    0.4712 |     1.012 |     3.460 |    0.6947 |
#> |.....................|     1.266 |     1.945 |     2.696 |...........|
#> |    X|     116.81067 |    0.4712 |     1.012 |     3.460 |    0.6947 |
#> |.....................|     1.266 |     1.945 |     2.696 |...........|
#> |   23|     116.81049 |   -0.9792 |   -0.6208 |     1.010 |   -0.8488 |
#> |.....................|   -0.4287 |   0.04006 |    0.4015 |...........|
#> |    U|     116.81049 |    0.4708 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.266 |     1.945 |     2.696 |...........|
#> |    X|     116.81049 |    0.4708 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.266 |     1.945 |     2.696 |...........|
#> |   24|     116.81041 |   -0.9794 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4015 |...........|
#> |    U|     116.81041 |    0.4706 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81041 |    0.4706 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   25|     116.81032 |   -0.9794 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04003 |    0.4014 |...........|
#> |    U|     116.81032 |    0.4706 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81032 |    0.4706 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   26|     116.81029 |   -0.9794 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04003 |    0.4014 |...........|
#> |    U|     116.81029 |    0.4706 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81029 |    0.4706 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    C| Central Diff. |   -0.1156 |   -0.3927 |    0.8508 |   -0.6895 |
#> |.....................|   -0.4159 |   -0.1740 |   -0.3485 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   27|     116.81028 |   -0.9794 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04003 |    0.4014 |...........|
#> |    U|     116.81028 |    0.4706 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81028 |    0.4706 |     1.013 |     3.460 |    0.6945 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    C| Central Diff. |  -0.06668 |    0.3282 |    0.7118 |   -0.6264 |
#> |.....................|   0.02988 |   -0.1715 |  -0.05114 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   28|     116.81028 |   -0.9794 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81028 |    0.4706 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81028 |    0.4706 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    C| Central Diff. |    0.5029 |    0.3736 |   -0.2151 |   -0.4708 |
#> |.....................|   -0.2713 |   -0.1954 |   -0.1425 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   29|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    C| Central Diff. |    0.6063 |    0.2079 |   -0.1240 |   -0.6045 |
#> |.....................|   -0.3123 |   -0.2712 |  -0.08100 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   30|     116.81037 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04005 |    0.4014 |...........|
#> |    U|     116.81037 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81037 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   31|     116.81032 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81032 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81032 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   32|     116.81029 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81029 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81029 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   33|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   34|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    C| Central Diff. |    0.6498 |    0.3878 |    0.2329 |   -0.4197 |
#> |.....................|   -0.3278 |  -0.06093 |   -0.1826 |...........|
#> |-----+---------------+-----------+-----------+-----------+-----------|
#> |   35|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   36|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   37|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   38|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   39|     116.81027 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81027 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   40|     116.81028 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81028 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81028 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |   41|     116.81028 |   -0.9795 |   -0.6206 |     1.010 |   -0.8489 |
#> |.....................|   -0.4288 |   0.04004 |    0.4014 |...........|
#> |    U|     116.81028 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> |    X|     116.81028 |    0.4705 |     1.013 |     3.460 |    0.6946 |
#> |.....................|     1.265 |     1.945 |     2.696 |...........|
#> calculating covariance matrix
#> [====|====|====|====|====|====|====|====|====|====] 0:00:01 
#> done
#> Warning: gradient problems with initial estimate and covariance; see $scaleInfo
#> Warning: last objective function was not at minimum, possible problems in
#> optimization
#> Warning: ETAs were reset to zero during optimization; (Can control by
#> foceiControl(resetEtaP=.))
#> Warning: initial ETAs were nudged; (can control by foceiControl(etaNudge=.,
#> etaNudge2=))

print(names(fitF))
#>  [1] "ID"                          "TIME"                       
#>  [3] "DV"                          "PRED"                       
#>  [5] "RES"                         "WRES"                       
#>  [7] "IPRED"                       "IRES"                       
#>  [9] "IWRES"                       "CPRED"                      
#> [11] "CRES"                        "CWRES"                      
#> [13] "eta.ka"                      "eta.cl"                     
#> [15] "eta.v"                       "center"                     
#> [17] "rx__sens_depot_BY_ETA_1___"  "rx__sens_center_BY_ETA_1___"
#> [19] "rx__sens_depot_BY_ETA_2___"  "rx__sens_center_BY_ETA_2___"
#> [21] "rx__sens_depot_BY_ETA_3___"  "rx__sens_center_BY_ETA_3___"
#> [23] "WT"

Created on 2022-02-02 by the reprex package (v2.0.0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.