Saemix R Package (@saemixR) header
Saemix R Package (@saemixR) profile picture

Open Source R package for mixed effects modeling. See https://nitter.cf/t.co/kuDoZN6rzT and R bookdown https://nitter.cf/t.co/AXafwuHh3b for more information.

Paris, France
Joined March 2018
Crash Course #24: COVID-19 in France: Hospital data and model predictions are now presented by region in an interactive application by Dr. Marc Lavielle from @Inria & @Polytechnique: shiny.webpopix.org/covidix/a… (1/2)
1
1
About the model used: Nonlinear regression and R are used for fitting the aggregated French data. Confidence intervals are computed using parametric bootstrap. A nonlinear mixed-effects model is fitted to the regional data using Monolix. (2/2)
Crash Course #23: Given the average (or “population” effect) similarity in the shape of deaths curves among countries, a high variability (or “random” effect) within each country and the presence of outliers lead naturally to Mixed Effects Models to study Covid-19 data. (1/2)
1
This is the object of a recent arxiv paper: arxiv.org/pdf/2007.00848.pdf. The results show that, in the presence of skewness and heavy tails in the data, an appropriate statistical model for COVID-19 research can lead to more accurate and reliable clinical decisions. (2/2)
1
Crash Course #22: An extension of SIR models for modeling the propagation of Covid-19 in several countries has been proposed in medrxiv.org/content/medrxiv/… (1/4).
1
It is a SIR-type compartmental model with additional compartments and features: Compartment D for deceased patients and compartment L for individuals who will decease but who will not infect anybody (due to social or medical isolation). (2/4)
1
Crash Course #21: Noncompartmental analysis (NCA) methods are model-independent and provide more analyst-to-analyst consistency. NCA relies almost exclusively upon algebraic equations to estimate PK parameters, making the analysis less complex than compartmental methods. (1/2)
1
NCAs often are more cost-efficient to conduct, especially when compared to more complex compartmental analyses (e.g., where compartmental models are applied to population PK analyses that rely upon sampling techniques). (2/2)
Crash Course #20: PK models (see subtweet) do not describe how a drug is administered. Administered doses are source terms, i.e., inputs that dynamically modify the state of a system. Thus, same PK model can be used for different dose regimens. (1/2)
Crash Course #6 🩺: Pharmacokinetic modeling relates to the study of the evolution of a drug in the body of a patient. It suggests linking observed data from patients, as plasma concentration of the drug, to the dose, the patient characteristics and the mode of absorption (1/2)
1
The plasmatic concentration is the solution of an ODE given initial conditions.The fact that the dose is administered in iv over a negligible period with instantaneous distrib. in the central compartment or with a cst. rate during an infusion time changes the resulting model(2/2)
Crash Course #19: variance-covariance matrix of the MLE can be estimated by the inverse of the observed Fisher Information Matrix (cf. fig). Standard errors for each component of the MLE are the square root of the diagonal elements of this variance-covariance matrix.
1
Crash Course #18: For complex posterior distributions, sampling or computing expected values according to that distribution can be intractable. In some cases, it is suitable to just pay attention to the region around the highest value, namely the mode. 1/3
1
Laplace Approximation leverages a second-order approximation within that high-valued region. Specifically, a Taylor expansion of the log-likelihood around its maximum point is taken up to the second order. 2/3
1
Crash Course #17:ADME (absorption,distribution,metabolism,excretion) describes phenomena in the organism after administration. 1/ Absorption: movement of the drug into the bloodstream from an extravascular site. Bioavailability: the drug is absorbed into the systemic circulation
1
2/ Distribution: reversible transfer of a drug between blood, tissue and organs. 3/ Metabolism: biotransformation within the body of a drug into metabolites. Some drugs, called prodrugs, are inactive until they are metabolized.
1
Crash Course #16: When using MMEM (cf. last week)->introduce diversity into structural models: (a)Between-subject model mixtures i.e. subpopulations of individuals. Imagine different structural models for responders, nonresponders and partial responders to a given treatment (1/3)
1
(b) Within-subject model mixtures: subpopulations within each patient (e.g. cells or viruses). Then, different structural models are used to describe the response of different subpopulations. NOTE: the proportion of each subpopulation depends on the patient. (2/3)
1
Crash Course #15 👨‍👨‍👧‍👦: When observations come from a population with underlying heterogeneity (several homogeneous subpopulations) then finite mixture of mixed effects (modeling between-subject variability) models (MMEM) are a great option (1/3)
1
1
E.g, MMEM is particularly relevant when the response of patients to a drug therapy is heterogeneous. During clinical efficacy trials, patients who respond well, partially or not at all can be considered different subpopulations. (2/3)
1
1
Crash Course #14⛓️: Markov chains are useful for analyzing categorical longitudinal data. Yet, sometimes Markov process can’t be directly observed and only some output, dependent on a hidden state, is seen (1/3)
1
Such models are named hidden Markov models (HMM) and are particularly useful in some biological contexts For example, they are helpful when characterizing diseases for which the existence of several discrete stages of illness is a realistic assumption: epilepsy and migraines(2/3)
1
Crash Course #13💻: Probabilistic Programming Languages (PPL) describe probabilistic models and the underlying mechanics to perform inference. PPL combines the inference capabilities of probabilistic methods with the representational power of programming languages (1/3)
1
Examples include Stan (Stats), VentureScript (ML, Robotics), Pyro (Deep Learning)... An example designed for nonlinear mixed-effects models is MlxTran. It is a declarative, human-readable language for the description of the statistical elements of NLMEM found in PK modeling (2/3)
1
Crash Course #12💊 (Combining oral and iv administrations): Some drugs can display complex absorption kinetics. Common examples are mixed first-order and zero-order absorptions, either sequentially or simultaneously, and fast and slow parallel first-order absorption (1/3)
1
1
E.g. combining iv injection with 3 types of oral admin. of the same drug. One type of oral dose is abs. into a latent compartment following a 0-order abs. process. The 2 oral doses are abs. into the central compartment following 1st-order abs. processes with different rates.(2/3)
1
Crash Course #11📚: Normalised prediction distribution errors (NPDE) are metrics designed to evaluate non-linear mixed effect models. Model evaluation is an important part of model building (1/4)
1
Since the development of statistical software allowing parameter estimation in non-linear mixed effect models in the early 70's, model evaluation and diagnostic graphs have mostly used standardised prediction errors (a.k.a. weighted residuals or WRES in the software NONMEM) (2/4)
1
Crash Course #10 👨‍💼: SIR models are compartment models aiming at modeling infectious diseases. In particular, the disease/infection rate is at stake here. The studied population is operated into compartments: Susceptible, Infected, Recovered (and sometimes Dead) (1/3)
2
1
1
Each quantity is described in a compartment and depends on time. The whole dynamics from one another is governed by ordinary differential equations. Important variables of this system include the transmission rate \beta or the portion of recovered per day \mu. (2/3)
1
Crash Course #9 🧐: Gaussian Mixture Models (GMM) are a class of unsupervised learning methods that perform "soft" clustering. Instead of assigning each point of a dataset to one and only one cluster (as in K-means), GMM compute a probability of belonging to each cluster. (1/3)
1
2
5
In GMM, each cluster is defined by a mean, a variance and a mixing probability (weight). GMM can be seen as an instance of latent data models where the complete model is composed of the observed data and latent data: the label assigning each point to a mixture. (2/3)
1
1
Crash Course #8 💊: The ADME process (Absorption, Distribution, Metabolism and Excretion) is a central concept in pharmacokinetics. It influences how the drug is evolving from the absorption to the elimination. (1/3)
1
(a) Absorption: For alpha order absorption, Ra(t), the rate of absorption at time t (in g/h for instance) is proportional to Ad(t), the amount of drug in the depot compartment. (2/3)
1
Open Access Clinical Trials Data via yoda.yale.edu/browsetrials/g… Courtesy of @Yale
Crash Course #7 🌡️: Fitting nonlinear mixed-effects models requires optimizing a (highly) nonconvex loss function. Simulated Annealing (SA) then allows to escape local maximums and improve the convergence towards the global maximum of that nonconvex loss. (1/2)
1
In practice, SA constrains the variance of the random effects and the residual error parameters of the model to a certain decay. This avoids the variances to decrease too fast and allows keeping the explored parameter space large for a longer time. (2/2)
1
Some insights on the Covid-19 data by one of our core members Marc Lavielle: webpopix.org/covidix19.html #COVID2019 #data #simulation