Learn R Programming

Automated biomarker analysis

The goals of the aba package are the following:

  • to facilitate sound statistical modelling in clinical research
  • to provide advanced tools for biomarker-based planning of clinical trials
  • to generate publication-ready tables and figures

With the aba package, it becomes easier to fit statistical models on permuatations of covariates / predictors / outcomes / groups, to make it easier to investigate how biomarkers can be used to plan (screening / enirichment) and analyze clinical trials, and to facilitate multi-cohort validation studies when data cannot be easily shared between collaborators.

Getting started

To view tutorials and examples of how to use the package, you can visit the package website at https://ncullen93.github.io/abaR/.

You can install the development version of the aba package from GitHub with the following:

# install.packages("devtools")
devtools::install_github("ncullen93/abaR")

The general workflow of fitting an aba model for statistical analysis looks like this:

library(aba)

df <- aba::adnimerge %>% filter(VISCODE == 'bl')

model_spec <- df %>% aba_model() %>%
  set_groups(everyone()) %>%
  set_outcomes(ConvertedToAlzheimers, CSF_ABETA_STATUS_bl) %>%
  set_predictors(
    PLASMA_ABETA_bl,
    PLASMA_PTAU181_bl,
    PLASMA_NFL_bl,
    c(PLASMA_ABETA_bl, PLASMA_PTAU181_bl, PLASMA_NFL_bl)
  ) %>%
  set_stats(
    stat_glm(std.beta=T)
  )

model_fit <- model_spec %>% fit()
model_summary <- model_fit %>% summary()

Publications

Some publications whose analysis has been done partially or completely with functions from the aba package are featured here:

Cite

If you use the aba package in your work, we appreciate if you cite us. An example statement which can be added at the end of the “Statistical analysis” section of your methods is provided here:

The analysis was done in the R programming language (v4.0.3) using the Automated Biomarker Analysis for R (“aba”) package [citation].

Receiving help

The easiest way to get help is to create an issue on the github page or to send us an email with your questions.

Copy Link

Version

Install

install.packages('aba')

Monthly Downloads

37

Version

0.0.9

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Nicholas Cullen

Last Published

December 16th, 2021

Functions in aba (0.0.9)

aba_demographics

Create a demographics table from a fitted aba model.
aba_plot_coef

Plot coefficients of an aba model summary
aba_model

Create an aba model.
aba_fit

Fit an aba model.
aba_emmeans

Calculated estimated marginal means.
aba_control

Create an aba control object.
aba_longpower

Run power analysis on a longitudinal-based aba model.
aba_plot

Plot an aba object
aba

Automated biomarker analysis in R
aba_adjust

Create an aba_adjust object.
aba_summary

Summarise a fitted aba model.
fit.abaModel

Fit an aba model.
aba_selection

Run model selection on an aba model.
everyone

Use all data rows as a group in an aba model.
aba_screen

Create an aba screen object.
as_table

Convert an aba summary to a nicely formatted table
aba_write

Write an aba object to file.
as_reactable

Convert an aba summary to a interactive react table
stat_ancova

Create an ancova stat object.
stat_glm

Create a glm stat object.
set_data

Set the data of an aba model
set_stats

Set the stats of an aba model
set_predictors

Set the predictors of an aba model.
set_covariates

Set the covariates of an aba model.
aba_plot_metric

Plot metrics of an aba model summary
%>%

Pipe operator
aba_plot_roc

Plot ROC curves from an aba model
stat_roc

Create a roc stat object.
reexports

Objects exported from other packages
adnimerge

A sample of ADNI data in long format
stat_retest

Create a retest stat object.
stat_mmrm

Create an mmrm stat object.
all_combos

Create all possible combinations of a set of variables
aba_robust

Evaluate the robustness of an aba model to systematic and random error.
set_outcomes

Set the outcomes of an aba model.
stat_lm

Create an lm stat object.
set_groups

Set the groups of an aba model.
aba_read

Read an aba object from file
stat_lme

Create an lme stat object.