Published December 17, 2025 | Version v3
Software Open

Optimising covariate allocation at design stage using Fisher Information Matrix for Non-Linear Mixed Effects Models in pharmacometrics

Authors/Creators

Description


  
  This repository contains the code and data used in the analysis for the publication "Optimising covariate allocation at design stage using Fisher Information Matrix for Non-Linear Mixed Effects Models in pharmacometrics"


  
Main Script

  
 **`run_all.R`**: Master script to run the entire analysis pipeline.


  
Folder Structure
  

  - **`/my_pmxcopula`**  
  Source code for the R package `pmxcopula` [@pmxcopula], used for copula fit diagnostic plots. This version includes minor edits. Original source: vanhasseltlab/pmxcopula.

- **`/PFIM_6_1_beta_cov`**  
  Contains `PFIM6.1_beta_cov` [@fayette_2024_13692989], an adapted version of the `PFIM6.1` R package [@pfim6], available at Zenodo.

- **`/Concentrations_covariates`**  
  Includes figures showing the evolution of concentration \( f(t) \) with respect to fixed and covariate effects.

- **`/HepaticFunction`**  
  Results and scripts for the Hepatic Function (HF) example.

- **`/RenalFunction`**  
  Results and scripts for the Renal Function (RF) example.

- **`/NHANES`**  
  Contains NHANES datasets (2009–2020) [@NHANES20092020] and the transformed covariate dataset used in the analysis.

- **`/tikzDictionary`**  
  TikZ dictionary for LaTeX-based plotting.

 

  
R Scripts

  
Data Preparation & Plotting
 

- `00_NHANES_create_database_RF_HF.R`: Creates the transformed covariate database from NHANES data.
- `01_Concentrations_covariates.R`: Plots concentration evolution figures.

 

Utility Functions

- `funct.R`: Loads required libraries and general functions.
- `funct_diag_copula.R`: Diagnostic functions for copula fits.
- `funct_Plot_Latex.R`: Plotting functions using `tikzDevice` for LaTeX output.
- `funct_ProjectedGradient.R`: Functions for the Projected Gradient Descent (PGD) algorithm.
- `funct_resOptim.R`: Functions to extract optimisation results.

 Hepatic Function (HF) Example

- `HF_02_fit_copula_pooled_vine.R`: Fits copulas and generates diagnostics.
- `HF_03_PFIM_GQ.R`: Computes FIM using Gauss-Legendre Quadrature.
- `HF_03_PFIM_MC.R`: Computes FIM using Monte Carlo methods.
- `HF_04_Cov_Opti.R`: Optimises covariate distribution.

Renal Function (RF) Example

- `RF_02_fit_copula_pooled_vine.R`: Fits copulas and generates diagnostics.
- `RF_03_PFIM_GQ_varying_beta.R`: Computes FIM using Gauss-Legendre Quadrature with varying beta.
- `RF_03_PFIM_MC.R`: Computes FIM using Monte Carlo methods.
- `RF_04_Cov_Opti_varying_beta.R`: Optimises covariate distribution.

- `Supp_RF_03_PFIM_baseModel.R`: Computes FIM for the model without covariates.
- `Supp_RF_BMI4_02_fit_copula_pooled_vine.R`: Sensitivity analysis with 4 BMI classes, fits copulas and generates diagnostics. 
- `Supp_RF_BMI4_03_PFIM_GQ_varying_beta.R`: Sensitivity analysis with 4 BMI classes, computes FIM using Gauss-Legendre Quadrature with varying beta. 
- `Supp_RF_BMI4_04_Cov_Opti_varying_beta.R`: Sensitivity analysis with 4 BMI classes, optimises covariate distribution.  


  

Files

Concentrations_covariates.zip

Files (845.2 MB)

Name Size Download all
md5:a1d29287f7a229a80242a5802c70c420
15.6 kB Download
md5:e927718f26429413e3bec3d1757e4ba3
14.0 kB Download
md5:9fc62cf52d705bbb618cde4d6abe4b5c
1.2 MB Preview Download
md5:de6e113411bf973d5a7f1264f30992cb
1.5 kB Download
md5:41fc2e0b8b31b0bfe4bd7e1a35e5f3a7
9.9 kB Download
md5:79ddb89a8f10925fb71cd158f1083c91
6.2 kB Download
md5:04e2da9fc45ee00f3d77966380df3c56
5.3 kB Download
md5:ec270ea76bd1a6d60a0392c80fcf12d5
18.0 kB Download
md5:5d2d31e20c8f88496841f082975600ee
246.0 MB Preview Download
md5:c52bfcbf4cdfb69ec181a9ec4e964803
22.0 kB Download
md5:6896a575fccfad75b2c86b401360ae3e
10.6 kB Download
md5:1e28f717342f75a49bbcb4aaaf6afa9b
14.2 kB Download
md5:abe7d2d812f4fbc83c54bffae01e41e1
38.8 kB Download
md5:bc4074127749349ca531092f578554e0
18.7 MB Preview Download
md5:796686d507892338eebe2897d6e075cb
9.8 MB Preview Download
md5:0ad3ac7e145ed37e21a43f6143e6767a
568.9 kB Preview Download
md5:e3c93d119d70880df1e14178f1ab25d8
630.3 kB Download
md5:0852f598cb22d79043ee829000d09769
3.3 kB Preview Download
md5:a57d2eb1ef01090207fab34f3201640a
1.3 kB Download
md5:5c271ec83b4917ab9b6aac98e329477d
567.8 MB Preview Download
md5:02777627fe195e1be50021ab6f4a45f4
26.1 kB Download
md5:b5acd87d5f97597d7eb65574c4dc8032
14.6 kB Download
md5:ce279e7f480f8ee691b520952293aa63
13.7 kB Download
md5:495555d2ac2ab0898ed5fcefc8b33c24
39.8 kB Download
md5:68b327a326b6544ad8d4917de430ee22
1.7 kB Download
md5:7e555efd53f734b254613e83b1b295d7
3.2 kB Preview Download
md5:0031efee8d4921a6d7b17970accdabbc
6.6 kB Download
md5:cd628fd5a079b7f83a4c7d92fcd6c10c
29.2 kB Download
md5:3e86538ea234e9e7cebd7d1aa0927fa4
15.2 kB Download
md5:88c8bab25b8915ef13f446cad2973731
43.2 kB Download
md5:656f7545d183460fd56a6f92ff0928f3
164.3 kB Preview Download

Additional details

Software

Programming language
R