What inspired this wish list request? In biopharmaceutical development, especially for platform-based modalities such as monoclonal antibodies, many molecules share the same process, analytical methods and formulation. Past data from earlier molecules is highly relevant to a new molecule. A Bayesian hierarchical (multilevel) model is the natural way to use that information. It partially pools information across molecules, lots, batches, assays and sites. It also gives a probabilistic statement of uncertainty.
Right now JMP can't fit a general Bayesian hierarchical model with user-defined priors and group-level hyperpriors. Mixed Models and Fit Model (REML) give point estimates of variance components, and the Bayesian options in JMP are limited. To do this properly, users have to leave JMP and write Stan code through RStan, or use similar tools. This takes programming and MCMC diagnostic skills that most CMC, formulation and analytical scientists don't have.
Example use case: A company has stability data (for example, aggregation rate or purity versus time) for 15 antibody molecules from the same platform. A new molecule has only 3 time points. A hierarchical model could treat each molecule's degradation slope as drawn from a platform-level distribution. That would give a stable shelf-life prediction with credible intervals for the new molecule. The same approach applies to platform process data, assay variability across runs, and the setting of prior-informed specifications.
What is the improvement you would like to see? I would like a point-and-click Bayesian hierarchical modeling platform in JMP, for example inside Fit Model or as a new platform. It would include:
A model specification UI that works like Fit Model. Users would assign random or grouping effects (for example Molecule, Lot, Batch) as hierarchical levels with partial pooling, and random slopes as well as intercepts.
Selectable response distributions (Normal, Binomial, Poisson and so on), with default weakly informative priors and the option to set custom priors and hyperpriors.
Built-in MCMC sampling (HMC/NUTS, Stan-like) running in the background. Users would not need to write code.
Diagnostics: trace plots, R-hat, effective sample size, divergences and posterior predictive checks.
Output: posterior distributions, credible intervals, group-level estimates and shrinkage plots. Predictions for new groups (for example, a new molecule) and probability statements (for example, P(spec met)) would also be included.
Integration with Profiler, Simulator and the Design of Experiments tools, plus generated JSL scripts for reproducibility.
Optionally, an interface that exports Stan code or connects to an existing Stan install, so advanced users can customize the model.
Comparable software includes R packages (rstan, brms, rstanarm), JASP, and SAS PROC MCMC/BGLIMM. brms is a good reference, because its formula syntax (for example y ~ time + (1 + time | molecule) ) is simple.
Why is this idea important?
It makes Bayesian methods usable by scientists who are not programmers, which fits JMP's strength in accessible statistics.
It lets platform-based development reuse prior knowledge. This can reduce the number of experiments and batches, lower cost and speed up development, which is very valuable when data per molecule is scarce.
It supports regulatory and quality-minded uses such as stability, process characterization and assay validation, and it expresses risk probabilistically. This fits the direction of ICH Q8/Q9/Q14 and the growing use of Bayesian approaches in CMC.
It keeps analysis inside one validated, reproducible environment, so users don't need to maintain a separate R/Stan toolchain.
... View more