Learn R Programming

⚠️There's a newer version (2.1.0) of this package.Take me there.

ubiquity

Provides an interface to the R workflow for ubiquity: a set of modeling tools created to accelerate the development and deployment of models of drug disposition and efficacy within an organization or institution. It is designed to make model development easier, reduce the pain when moving between modeling software, and provide a simple but customizable interface to allow other scientists to interrogate models. It is provide free under a BSD license with source code available in GitHub (R-package, ubiquity project).

For detailed software requirements and installation instructions see this page: (https://ubiquity.tools/rworkflow)

Briefly, install the following:

To install from GitHub:

install.packages("devtools") 
devtools::install_github("john-harrold/ubiquity",                                       
              force           = TRUE,
              build           = TRUE, 
              build_vignettes = TRUE,
              build_opts      = c("--no-resave-data", "--no-manual"))

For more information on specific tasks see the vignettes:

  • Constructing ODE based systems using the ubiquity language: vignette("Language", package = "ubiquity")
  • Running individual and population simulations: vignette("Simulation", package = "ubiquity")
  • Naive-pooled parameter estimation: vignette("Estimation", package = "ubiquity")
  • Rule-based/titration simulations: vignette("Titration", package = "ubiquity")
  • ShinyApp for running and deploying models: vignette("Deployment", package = "ubiquity")
  • Inline generation of PowerPoint reports: vignette("Reporting", package = "ubiquity")
  • Automated non-compartmental analysis with PKNCA: vignette("NCA", package = "ubiquity")

Copy Link

Version

Install

install.packages('ubiquity')

Monthly Downloads

340

Version

1.0.0

License

BSD_2_clause + file LICENSE

Maintainer

John Harrold

Last Published

October 17th, 2019

Functions in ubiquity (1.0.0)

estimate_parameters

Performs parameter estimation
calculate_objective_ga

GA Wrapper for calculate_objective
run_simulation_ubiquity

Simulate Individual Response
build_system

Building The System
system_check_steady_state

Verify System Steady State
system_glp_save

Save results from a GLP Study design
AUC_Bailers_method

AUC for sparse data
calculate_variance

Calculates the Variance in od_general
gg_log10_yaxis

Make Pretty ggplot y-Axis Log 10 Scale
system_load_data

Loading Datasets
system_select_set

Selecting Parameter Sets
prepare_figure

Make ggplot Figure Pretty
system_nca_run

Automatic NCA
logspace

Implementation of the logspace Function from Matlab
system_fetch_iiv

Fetch Variability Terms
system_nm_check_ds

Check NONMEM Dataset for Automatic Definitions
calculate_objective_pso

pso Wrapper for calculate_objective
apply_sub_file_COV

Extracts Covariates for a Subject from a Subject Data File
system_simulate_estimation_results

Simulate Results at Estimates
pad_string

Pad String with Spaces
system_set_rate

Set Infusion Rate Inputs
system_report_save

Save Report to File
system_log_init

Initialize System Log File
system_define_cohort

Define Estimation Cohort
system_clear_cohorts

Clear all Cohorts
parse_patterns

Parse String for Prototype Functions
system_report_doc_set_ph

Sets Placeholder Content for Word Document Report
system_log_entry

Add Log Entry
generate_report

Generate Text Report with Estimation Results
make_forcing_function

Makes Forcing Function From Times and Values
system_report_slide_two_col

Generate Slide with Two Column Layout
simulate_subjects

Run Population Simulations
nm_select_records

Select Records from NONMEM-ish Data Set
check_steady_state

Verify System Steady State
system_fetch_parameters

Fetch System Parameters
sample_around

Define Sample Times Around Events
generate_subject

Generate Subject
system_report_view_layout

Generate Annotated Layout for Report Templates
GUI_log_entry

Wrapper for system_log_entry Used in ShinyApp
system_report_slide_content

Add Slide With Main Body of Content
system_report_set

Overwrite officer Object for a Given Report
system_glp_scenario

Design GLP Study For a Scenario
calculate_objective

Calculates the Value of the Specified Objective Function
system_req

Require Suggested Packages
system_report_glp

Report GLP Study
system_report_estimation

Generate a Report from Parameter Estimation
var2string_gen

Convert R Objects to Strings
var2string

Converts Numeric Variables into Padded Strings
compare_estimate

Compares Estimate to Bounds
system_set_tt_rate

Actual Function Called by SI_TT_RATE
system_report_fetch

Retrieve the officer Object of a Report
system_set_tt_cond

Define Titration Triggers and Actions
system_check_requirements

Check For Perl and C Tools
system_set_parameter

Set Value for Parameter
system_glp_init

Initialize GLP study design
archive_estimation

Archive Estimation Results
generate_parameter

Generates a Parameter Based on <IIV:?> in the System File
system_estimate_parameters

Control Estimation Process
find_bracketed_arguments

Parse Prototype Functions for Arguments
run_simulation_titrate

Simulate With Titration or Rule-Based Inputs
system_set_option

Setting Analysis Options
system_plot_cohorts

Plot Estimation Results
system_define_cohorts_nm

Define Cohorts from NONMEM Input File
system_fetch_TSsys

Fetch System Timescale
tic

Implementation of Matlab tic() command
timecourse_stats

Calculate Timecourse Statistics for a Matrix of Responses
system_set_bolus

Set Bolus Inputs
fetch_full_parameters

Create Full Parameter Vector from Estimation Subset
system_fetch_template

Create New Template After Building System File
system_report_ph_content

Populate Placeholder In Officer Report
system_set_tt_bolus

Actual Function Called by SI_TT_BOLUS
system_report_doc_add_content

Add content to Body of a Word Document Report
system_od_general

General Observation Details Function
system_report_slide_title

Generate Title Slide
ubiquity_name_check

Check Names of Cohorts, Analyses, Reports, etc.
toc

Implementation of Matlab toc() command
system_ts_to_simtime

Convert Time in Timescale to Simulation Time
system_report_slide_section

Generate Slide with Section Break
calculate_halflife

Calculate the halflife of data
solution_statistics

Calculate Solution Statistics
system_report_init

Initialize a New Officer Report
som_to_df

Converts the Wide/Verbose Output Simulation Functions into Data Frames
system_report_nca

Report NCA
system_set_covariate

Set Covariate Values
system_view

View Information About the System
system_zero_inputs

Zero All Model Inputs
gg_log10_xaxis

Make Pretty ggplot x-Axis Log 10 Scale
linspace

Implementation of the linspace Function from Matlab
gg_axis

Make Pretty ggplot x- or y-Axis Log 10 Scale
system_fetch_guess

Fetch Current Parameter Guesses
system_new

Create New system.txt File
system_new_tt_rule

Titration Rules
workshop_fetch

Fetch Ubiquity Workshop Sections
system_set_guess

Alter Initial Guess and Parameter Bounds
vp

Print and Log Messages
system_set_iiv

Set Variability Terms