Learn R Programming

ushr (version 0.2.3)

Understanding Suppression of HIV

Description

Analyzes longitudinal data of HIV decline in patients on antiretroviral therapy using the canonical biphasic exponential decay model (pioneered, for example, by work in Perelson et al. (1997) ; and Wu and Ding (1999) ). Model fitting and parameter estimation are performed, with additional options to calculate the time to viral suppression. Plotting and summary tools are also provided for fast assessment of model results.

Copy Link

Version

Install

install.packages('ushr')

Monthly Downloads

113

Version

0.2.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Sinead E. Morris

Last Published

April 21st, 2020

Functions in ushr (0.2.3)

get_params

Extract fitted parameters
simulate_time

Simulate timepoints for subjects
get_nonparametricTTS

Non-parametric TTS function
simulate_data

Create data function
get_biphasic

Compute the biphasic model curve
get_optim_fit

Fit model to data using optim
get_transformed_params

Transform parameters
transformVL

Transform viral load data
get_singlephase

Compute the single phase model curve
get_plottheme

Get plotting theme
get_curve

Compute the model for a given subject's data and best-fit parameters
fit_model

Fit model and obtain parameter estimates
plot_model

Plot model fits
plot_data

Plot data
simulate_vl

Simulate vl for subjects
simulate_time_fixed

Simulate timepoints for subjects according to fixed design.
ushr_triphasic

Master function for the triphasic model
tri_switch_params

Switch names of rate parameters
get_error

Evaluate error metric between data and model prediction
get_error_triphasic

Evaluate error metric between data and model prediction
get_triphasic

Compute the triphasic model curve
get_optim_fit_triphasic

Fit triphasic model to data using optim
plot_TTS

Plot time to suppression distribution
get_parametricTTS

Parametric TTS function
single_root

Single phase root function
plot_pairs

Plot pairwise parameter distributions
ushr

Master function
remove_vl0

Prune viral load data
triphasic_root

Triphasic root function
switch_simulated_params

Switch names of simulated rate parameters
switch_params

Switch names of rate parameters
summarize_model

Summarize model output
filter_data

Prepare input data
filter_dataTTS

Prepare input data for non-parametric TTS calculations.
biphasic_root

Biphasic root function
get_TTS

Time to suppression (TTS) function
fit_model_triphasic

Fit model and obtain parameter estimates
get_CItable

Make parameter summary table
actg315raw

Data from ACTG315 trial of HIV viral load in adults undergoing ART
add_noise

Add noise to viral load observations
get_CI

Calculate parameter confidence intervals