Package: Pmetrics 3.1.3

Michael Neely

Pmetrics: Pmetrics for Population Modeling and Simulation

Pmetrics is short for pharmacometrics, the discipline of modeling drug kinetics and effects on biologic systems, including disease progression. Models can be used to simulate novel therapeutic dosing regimens and/or populations, informing trial design and dosing strategies. The package supports primarily non-parametric but also parametric pharmacometric modeling and simulation with functions to run and analyze the output from all three components of the Pmetrics software suite for population pharmacometric data analysis: 1) IT2B (Iterative Two-Stage Bayesian) for parametric models; 2) NPAG (Non-parametric Adaptive Grid) for non-paramametric models; 3) Simulator for semi-parametric Monte-Carlo simulations.

Authors:Michael Neely [aut, cre], Julián Otálvaro [aut], Markus Hovd [aut], Walter Yamada [ctb], Alan Schumitzky [ctb], Rong Chen [ctb], Michael van Guilder [ctb], David Bayard [ctb], Robert Leary [ctb]

Pmetrics_3.1.3.tar.gz
Pmetrics_3.1.3.zip(r-4.7)Pmetrics_3.1.3.zip(r-4.6)Pmetrics_3.1.3.zip(r-4.5)
Pmetrics_3.1.3.tgz(r-4.6-x86_64)Pmetrics_3.1.3.tgz(r-4.6-arm64)Pmetrics_3.1.3.tgz(r-4.5-arm64)Pmetrics_3.1.3.tgz(r-4.5-x86_64)
Pmetrics_3.1.3.tar.gz(r-4.7-arm64)Pmetrics_3.1.3.tar.gz(r-4.7-x86_64)Pmetrics_3.1.3.tar.gz(r-4.6-arm64)Pmetrics_3.1.3.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
Pmetrics/json (API)
NEWS

# Install 'Pmetrics' in R:
install.packages('Pmetrics', repos = c('https://lapkb.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/lapkb/pmetrics/issues

Pkgdown/docs site:https://lapkb.github.io

Datasets:
  • badData - Pmetrics data file with errors
  • cdc_bmi - CDC Pediatric and Adolescent BMI Table
  • dataEx - Pmetrics data file
  • ger_bmi - CDC Pediatric and Adolescent BMI Table
  • growth - CDC Pediatric and Adolescent Growth Data Table
  • locales - Pmetrics locales
  • mic1 - Example MIC data
  • modEx - Pmetrics model object
  • NPex - Example NPAG Output with validation
  • simEx - Example simulator output

On CRAN:

Conda:

modelingpharmacokineticssimulationrustcargo

7.06 score 26 stars 54 scripts 124 exports 131 dependencies

Last updated from:32c97ddcdc (on v3.1.3). Checks:11 NOTE, 1 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE542
linux-devel-x86_64NOTE491
source / vignettesOK558
linux-release-arm64NOTE525
linux-release-x86_64NOTE586
macos-release-arm64NOTE644
macos-release-x86_64NOTE1212
macos-oldrel-arm64NOTE608
macos-oldrel-x86_64NOTE1232
windows-develNOTE827
windows-releaseNOTE896
windows-oldrelNOTE865
wasm-releaseFAIL194

Exports:%>%abab_lineadd_renaladd_shapesadd_smoothadditiveall_is_numericappscheck_updatesclear_buildcli_askcli_dfclick_plotcompile_modelcor2covcreate_pmetrics_projectdownloadRdummy_compileexport_plotlyfitgetCovgetDefaultColorsgetFixedColNumgetPalettesgetPMoptionsinterpis_cargo_installedITloadITreportlatestRlit_simmake_AUCmake_NCAmake_validmakeAUCmakeErrorPolymakeNCAmakeNPDEmakePTAtargetmakeValidmodel_libmodel_parametersmodifyList2msdNM2PMNPloadNPreportNPrunone_comp_bolusone_comp_bolus_clone_comp_ivone_comp_iv_clopposite_colorplotlyggPM_batchPM_buildPM_comparePM_covPM_cyclePM_dataPM_finalPM_fitPM_helpPM_loadPM_manualPM_modelPM_opPM_optPM_parsepm_plotPM_popPM_postPM_ptaPM_reportPM_resultPM_simPM_stepPM_treePM_tutorialPM_validPMbuildPMcheckPMcheckMatrixPMcomparePMdiagPMfixMatrixPMFortranConfigPMgetCRCLPMloadPMmatrixRelTimePMnewsPMpatchPMreadDefaultsPMreportPMsavePMtestPMtreePMwriteDefaultsPMwriteMatrixPMwrk2csvpos_defproportionalqgrowthrgba_to_rgbround2save_flextablesetPMoptionssetup_logssimulate_allsimulate_oness.PKsub_plottemplatetemporary_paththree_comp_bolusthree_comp_bolus_clthree_comp_ivthree_comp_iv_cltwo_comp_bolustwo_comp_bolus_cltwo_comp_ivtwo_comp_iv_clzBMI

Dependencies:alabamaaskpassautocogsbackportsbase64encbitbit64broombslibcachemcallrcheckmateclicliprcommonmarkcpp11crayoncrosstalkcurldata.tabledigestdiptestDistributionUtilsdplyrDTevaluatefarverfastmapfideliusflextablefontawesomefontBitstreamVerafontLiberationfontquiverfsgdtoolsgenericsggplot2gluegridExtragtableherehexbinhighrhmshtmltoolshtmlwidgetshttpuvhttrisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclelubridatemagrittrMASSMatrixmclustmemoisemimemomentsnleqslvnpdenumDerivofficeropensslopenxlsxotelpanderpillarpkgconfigplotlypngprettyunitsprocessxprogresspromisespspurrrqrngR6raggrappdirsRColorBrewerRcppRcppArmadilloRcppTOMLreadrreticulaterlangrmarkdownrprojrootrstudioapiS7sassscalesshinysodiumsourcetoolsspacefillrstringistringrsyssystemfontstextshapingtibbletidyrtidyselecttimechangetinytextrelliscopejsTruncatedNormaltzdbutf8uuidvctrsviridisLitevroomwebshotwhiskerwithrxfunxml2xtableyamlzip

Pmetrics

Rendered frompmetrics.Rmdusingknitr::rmarkdownon Jun 11 2026.

Last update: 2026-04-13
Started: 2022-09-26

Readme and manuals

Help Manual

Help pageTopics
Initial range for primary parameter valuesab
Add lines to plotly plotab_line
Estimate renal function using various equationsadd_renal
Add shapes to plotly plotadd_shapes
Add regression to plotly plotadd_smooth
Additive error modeladditive
Check if all values are numericall_is_numeric
Launch packaged Shiny appsapps lit_sim pm_plot
Pmetrics data file with errorsbadData
CDC Pediatric and Adolescent BMI Tablecdc_bmi
Check for Pmetrics and R updatescheck_updates
Click on plotly plot to highlight tracesclick_plot
Convert correlation matrix to covariance matrixcor2cov
Pmetrics data filedataEx
Download the latest platform-specific R installerdownloadR
Export plotly plotexport_plotly
CDC Pediatric and Adolescent BMI Tableger_bmi
Extract covariate informationgetCov
Get a list of default colorsgetDefaultColors
Number of fixed columnsgetFixedColNum
Get color palettegetPalettes
Get Pmetrics User OptionsgetPMoptions
CDC Pediatric and Adolescent Growth Data Tablegrowth
Model covariate declarationinterp
Get latest platform-specific R release metadatalatestR
Pmetrics localeslocales
Calculation of AUCsmakeAUC make_AUC
Non-compartmental analysismake_NCA
Assay error polynomial coefficientsmakeErrorPoly
Make a Percent Target Attainment (PTA) TargetmakePTAtarget
Example MIC datamic1
Model Librarymodel_lib
Pmetrics model objectmodEx
Initial mean/SD for primary parameter valuesmsd
Compare discrete distributionsmtsknn.eq
Convert NONMEM to Pmetrics Data FilesNM2PM
Example NPAG Output with validationNPex
One-compartment bolus model templateone_comp_bolus
One-compartment bolus clearance model templateone_comp_bolus_cl
One-compartment IV model templateone_comp_iv
One-compartment IV clearance model templateone_comp_iv_cl
Find opposite color with max contrastopposite_color
Plot Pmetrics Covariate objectsplot.PM_cov
Plot Cycle Informationplot.PM_cycle
Plot PM_cycle_data objectsplot.PM_cycle_data
Plot PM_data Time-Output Dataplot.PM_data
Plot method for PM_data data framesplot.PM_data_data
Plot Pmetrics Final Cycle Parameter Value Distributionsplot.PM_final
Plot PM_final_data objectsplot.PM_final_data
Plot PM_model objectsplot.PM_model
Plot Pmetrics Observed vs. Predicted Objectsplot.PM_op
Plot PM_op_data objectsplot.PM_op_data
Plot Pmetrics Multiple-Model Optimal Sampling Objectsplot.PM_opt
Plot PM_pop Prediction Dataplot.PM_pop
Plot PM_post Prediction Dataplot.PM_post
Plot PM_pta Percent Target Attainment objectsplot.PM_pta
Plot Pmetrics Simulation Objectsplot.PM_sim
Plot Pmetrics Validation Objectsplot.PM_valid
Plot Pmetrics Validation Objectsplot.PMvalid
Convert a plotly object to ggplotplotlygg
Build PmetricsPM_build
Compare runsPM_compare
Contains covariate dataPM_cov
Pmetrics Run Cycle InformationPM_cycle
Defines the PM_data objectPM_data
Final Cycle Population ValuesPM_final
Get Help and Report IssuesPM_help
Load Pmetrics NPAG or IT2B outputPM_load
Open user and function manuals. *[Stable]*PM_manual
Defines the PM_model classPM_model
Observed vs. predicted dataPM_op
Optimal Sample TimesPM_opt
Population predictions at short intervalsPM_pop
Individual Bayesian posterior predictions at short intervalsPM_post
Generate a reportPM_report
Stepwise covariate-parameter regressionsPM_step
Create a new Pmetrics folder treePMtree PM_tree
Pmetrics tutorialPM_tutorial
Pmetrics validation objectPM_valid
Check Pmetrics Inputs for ErrorsPMcheck
Convert Absolute Dates and Times to Relative HoursPMmatrixRelTime
Download and install Pmetrics patchesPMpatch
Read a Pmetrics data filePMreadMatrix
Test PmetricsPMtest
Write a Pmetrics .csv Matrix FilePMwriteMatrix
Convert Old .wrk Files to .csv Matrix FilePMwrk2csv
Print method for PM_compare objectsprint.PM_compare
Print Data Errorsprint.PMerr
Print NPCprint.PMnpc
Print Summary of Cycle Statisticsprint.summary.PM_cycle
Print Summary of Pmetrics Dataprint.summary.PM_data
Print Summary of Parameter Values and Credibility Intervalsprint.summary.PM_final
Print Summary of Observations and Predictionsprint.summary.PM_op
Print Summary of Simulationsprint.summary.PM_sim
Proportional error modelproportional
Extract CDC pediatric growth chartsqgrowth
Convert RGBA to RGBrgba_to_rgb
Set Pmetrics User OptionssetPMoptions
Example simulator outputsimEx
Sample size calculations for Phase 1 PK study designss.PK
Display multiple plotly plotssub_plot
Summarize Covariates and Bayesian Posterior Parameter Valuessummary.PM_cov
Summarize Final Cycle Statisticssummary.PM_cycle
Summarize PM_cycle_data objectssummary.PM_cycle_data
Summarize PM_data objectssummary.PM_data
Summary Statistics for Final Cyclesummary.PM_final
Summarize PM_final_data objectssummary.PM_final_data
Summarize Observations and Predictionssummary.PM_op
Summarize PM_op_data objectssummary.PM_op_data
Summarize Observations and Predictionssummary.PM_pop
Summarize Observations and Predictionssummary.PM_post
Summarize Percent Target Attainmentsummary.PM_pta
Summarize Pmetrics Simulation Objectssummary.PM_sim
Summary Method for PM_valid Objectssummary.PM_valid
Three-compartment bolus model templatethree_comp_bolus
Three-compartment bolus clearance model templatethree_comp_bolus_cl
Three-compartment IV model templatethree_comp_iv
Three-compartment IV clearance model templatethree_comp_iv_cl
Two-compartment bolus model templatetwo_comp_bolus
Two-compartment bolus clearance model templatetwo_comp_bolus_cl
Two-compartment IV model templatetwo_comp_iv
Two-compartment IV clearance model templatetwo_comp_iv_cl
Extract CDC pediatric BMI z-scoreszBMI