跳到正文

药代动力学与药效研究建模

组织 PK/PD 研究模型、参数、暴露与反应分析,保存数据依据、模型假设及评价结果。

开源精选医疗业务31 个文件50,135 Stars浏览次数 0K-Dense-AI/scientific-agent-skills MIT版本 a1043ef
开始使用

适用环境:Requires Python 3.12+ with NumPy 2+ and SciPy. No network access and no proprietary software. The estimation tools this skill orients you towards (NONMEM, Monolix, Phoenix, Simcyp, GastroPlus) are licensed separately and are never invoked by these scripts.

输入资料
获准使用的 PK/PD 研究资料 模型目标、参数与分析环境 阅读本节完整说明
交付内容
可复查的研究模型 模型评价与假设说明 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/population-pk.md

Plan and construct data

State the context of use, populations, analytes, estimands, exclusions and decisions before model selection. Reconcile dose records, actual sampling times, route, infusion duration, assay and BLQ flags. Keep missing/censored observations distinct. See dataset standards and analysis plan.

Use an NLME engine (NONMEM, Monolix, nlmixr2 or a qualified alternative) to estimate population parameters, between-subject/occasion variability and residual error. Fitting subjects separately with this skill's WLS helper is not population estimation. Record estimator, approximation, starting values, bounds, seed, covariance method and software version.

Structural and variability model

Use identifiable structure supported by the sampling design. Lognormal individual parameters are convenient for positive CL/V, but are not universally correct. Check random-effect correlations, occasion definitions, time-varying covariates and residual variance assumptions. High condition numbers depend on scaling; a universal cutoff does not establish identifiability.

BLQ exclusion (M1), substitution and censored-likelihood (commonly M3) can differ materially. Select by censoring pattern, assay and intended use, then examine sensitivity. A fixed BLQ fraction alone is insufficient to choose a method. Missing DV is not interchangeable with a censored DV.

Covariate inference needs uncertainty, plausible ranges, multiplicity/selection considerations and clinical relevance. Sparse empirical Bayes estimates can hide or manufacture covariate patterns. Do not select the final model using an arbitrary shrinkage threshold alone.

Diagnostics

  • Plot observed vs population/individual predictions and appropriate residuals by time, predictions, assay, dose, subgroup and study. Residual definitions depend on estimation method.
  • Report shrinkage convention: SD shrinkage 1-SD(eta_hat)/omega differs from variance shrinkage 1-Var(eta_hat)/omega². Pharmpy defaults to variance (sd=False); use sd=True for SD.
  • Simulation diagnostics (VPC/pcVPC, NPC/NPDE where appropriate) must reproduce dose, sampling, covariates and censoring. Prediction correction itself has assumptions.
  • Assess uncertainty with covariance, bootstrap, likelihood profiles or another justified method; record failures and boundary estimates, not only successful replicates.
  • Evaluate predictive performance in data independent of calibration when available and relevant. Good internal fit does not establish performance in a new population or dosing scenario.

The FDA 2022 population PK guidance frames evaluation around intended application; ICH M15 adds a general model-informed development framework. Neither turns diagnostic thresholds into automatic approval.

Pharmpy shrinkage interface

Documentation-verified call; it needs real fitted outputs and was not executed against an NLME fit:

# Illustrative: model and both estimates tables must come from the same fit.
from pharmpy.modeling import calculate_eta_shrinkage
shrinkage = calculate_eta_shrinkage(model, parameter_estimates, individual_estimates, sd=True)

parameter_estimates is a pandas Series; individual_estimates is a DataFrame. Check parameter names and individual alignment. API.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan