Learn R Programming

breathtestcore (version 0.8.10)

Core Functions to Read and Fit 13c Time Series from Breath Tests

Description

Reads several formats of 13C data (IRIS/Wagner, BreathID) and CSV. Creates artificial sample data for testing. Fits Maes/Ghoos, Bluck-Coward self-correcting formula using 'nls', 'nlme'. Methods to fit breath test curves with Bayesian Stan methods are refactored to package 'breathteststan'. For a Shiny GUI, see package 'dmenne/breathtestshiny' on github.

Copy Link

Version

Install

install.packages('breathtestcore')

Monthly Downloads

291

Version

0.8.10

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Dieter Menne

Last Published

October 28th, 2025

Functions in breathtestcore (0.8.10)

nls_fit

Individual curve fit with nls to 13C breath test data
simulate_breathtest_data

Simulate 13C breath time series data
read_breathtest_excel

Reads breathtest data in Excel format
read_iris_csv

Read 13C data from IRIS/Wagner Analysen in CSV Format
t50_maes_ghoos_scintigraphy

Half-emptying time t50 from Maes/Ghoos fit with scintigraphic correction
subsample_data

Decimate densely sampled 13C time series
tidy.breathtestfit

Broom-style tidying methods for breathtestfit
sigma.breathtestnlmefit

S3 method to extract the fit's residual standard deviation
read_iris

Read 13C data from IRIS/Wagner Analysen
usz_13c

Zurich sample set of 13C breath test data
t50_bluck_coward

Bluck-Coward self-corrected half-emptying time
t50_maes_ghoos

Half-emptying time by Maes/Ghoos method
tlag_bluck_coward

Lag phase for Bluck-Coward self-correcting fit
tlag_maes_ghoos

So-called lag time from Maes/Ghoos fit
usz_13c_a

Exotic 13C breath test data
usz_13c_d

13C breath test data with MRI emptying for comparison
breathtest_read_function

Snoop method to read breath test file
AIC.breathtestnlmefit

S3 AIC method for breathtestnlmefit
breathtest_data

Data structure with PDR data and descriptors for breath test records
augment.breathtestfit

Augmented prediction for breathtest fit
coef.breathtestfit

S3 coef and summary for breathtestfit
coef_by_group

Tabulates per-group breath test parameters
coef_diff_by_group

Tabulates breath test parameter differences of groups
cum_exp_beta

Cumulative exponential beta function
btcore_file

Path to example breath test data file
cleanup_data

Transforms 13C breath data into a clean format for fitting
nlme_fit

Mixed-model nlme fit to 13C Breath Data
read_breathid

Read BreathID file
read_breathid_xml

Read new BreathID/Examens XML file
plot.breathtestfit

S3 plot method for breathtestfit
null_fit

Convert data to class breathtestfit
extract_id

Extracts an ID from string IRIS CSV file
dob_to_pdr

Convert breath test DOB data to PDR data
read_any_breathtest

Read breathtest files of any format
exp_beta

Exponential beta function for 13C breath data