Skip to contents

  • Data preparation & inspection
  • nm_read_csv()
    Read and normalise a NONMEM-like dataset
    nm_check_dataset()
    Check that a dataset is compatible with NONMEM
    nm_summary()
    Diagnostic summary of a NONMEM-like dataset
    nm_plot_dv()
    Plot DV vs TIME with median and interval band
    nm_data_previsual()
    Pre-visualise a NONMEM-like dataset
    nm_add_rate()
    Add a RATE column to a NONMEM dataset
    nm_export_data()
    Export a data.frame to CSV (NONMEM convention: na = ".")

  • Exploration & base model
  • nm_suggest_model() print(<nm_model_suggestion>)
    Suggest structural PK models from a NONMEM dataset
    plot(<nm_model_suggestion>)
    Plot a model suggestion
    nm_suggest_design() print(<nm_suggest_design>) plot(<nm_suggest_design>)
    Expected precision of a suggested model for a sampling design
    nm_suggest_run() print(<nm_suggest_run>)
    Write, run and rank the candidates of a model suggestion
    nm_suggest_covariates() print(<nm_suggest_covariates>)
    Covariate screening on individual PK estimates before modelling

  • Control streams
  • nm_write_ctl()
    Write a NONMEM control stream for a population PK model
    nm_ctl_check()
    Static check of a NONMEM control stream
    nm_ctl_mu()
    MU referencing of a NONMEM control stream
    nm_ctl_iov()
    Add inter-occasion variability to a NONMEM control stream
    nm_ctl_m3()
    Implement the M3 method for BQL data in a NONMEM control stream
    nm_convert_ctl()
    Convert a Wings for NONMEM extended control stream to standard NONMEM

  • Running NONMEM
  • nm_run()
    Run one or more NONMEM models
    nm_cores()
    Number of processor cores available for parallel NONMEM runs

  • Results
  • nm_extract_runs()
    Extract the results of several NONMEM runs
    nm_filter_runs()
    Filter NONMEM runs and recompute relative criteria
    nm_compare_runs()
    Compare the parameters of several runs side by side
    nm_extract_run_table()
    Parameter table of one NONMEM run, exported to Word
    nm_identify_parameters()
    Identify the semantic role of THETA and ETA in a NONMEM control stream
    nm_identify_directory()
    Identify THETA/ETA roles for all control streams of a directory
    nm_model_diagram()
    Diagram of the models tested in a project

  • Diagnostics
  • nm_gof()
    Goodness-of-fit diagnostic plots from a NONMEM $TABLE file

  • Model selection & comparison
  • nm_compare() print(<nm_compare>) summary(<nm_compare>)
    Compare two NONMEM runs
    plot(<nm_compare>)
    Diagnostic plots for nm_compare objects
    nm_derivatives_ctl()
    Control stream of derivatives for the linearization of a base model
    nm_optimize_base() print(<nm_optimize_base>) plot(<nm_optimize_base>)
    Proposals to improve a base model without iterative NONMEM runs
    nm_wasserstein() print(<nm_wasserstein>)
    Distribution-based covariate assessment with the Wasserstein distance
    plot(<nm_wasserstein>)
    Plots for nm_wasserstein objects

  • Model validation
  • nm_vpc_ctl()
    Generate VPC control streams and launch NONMEM runs
    nm_vpc()
    Visual Predictive Check (VPC or pc-VPC) from NONMEM simulation output
    nm_bootstrap()
    Nonparametric (case) bootstrap of a NONMEM model
    nm_jackknife() print(<nm_jackknife>)
    Leave-one-subject-out jackknife of a NONMEM model
    plot(<nm_jackknife>)
    Plots for nm_jackknife objects
    nm_profile() print(<nm_profile>) plot(<nm_profile>)
    Profile the objective function over one model parameter

  • Reporting
  • nm_export_plot()
    Export a ggplot to an image file

    Task guide

    nm_guide()
    Interactive task guide
    nm_guide_addin()
    RStudio addin: open the task guide