Learn R Programming

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

ushr (version 0.1.0)

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

135

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Sinead E. Morris

Last Published

October 9th, 2019

Functions in ushr (0.1.0)

biphasic_root

Biphasic root function
plot_TTS

Plot time to suppression distribution
plot_model

Plot model fits
plot_data

Plot data
ushr

Master function
get_CI

Calculate parameter confidence intervals
get_CItable

Make parameter summary table
get_plottheme

Get plotting theme
get_singlephase

Compute the single phase model curve
get_curve

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

Evaluate error metric between data and model prediction
simulate_vl

Simulate vl for subjects
single_root

Single phase root function
summarize_model

Summarize model output
switch_params

Switch names of rate parameters
get_TTS

Time to suppression (TTS) function
get_biphasic

Compute the biphasic model curve
get_optim_fit

Fit model to data using optim
get_nonparametricTTS

Non-parametric TTS function
simulate_time

Simulate timepoints for subjects
actg315raw

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

Add noise to viral load observations
switch_simulated_params

Switch names of simulated rate parameters
filter_dataTTS

Prepare input data for non-parametric TTS calculations.
fit_model

Fit model and obtain parameter estimates
remove_vl0

Prune viral load data
get_params

Extract fitted parameters
get_parametricTTS

Parametric TTS function
simulate_time_fixed

Simulate timepoints for subjects according to fixed design.
simulate_data

Create data function
transformVL

Transform viral load data
filter_data

Prepare input data
get_transformed_params

Transform parameters