View source: R/breathtestfit_broom.R
tidy.breathtestfit | R Documentation |
Broom-method tidy
to streamline the results of class
breathttestfit
as generated by nls_fit
or nlme_fit
. Returns
the fit coefficients and half-emptying time t50 with the Maes/Ghoos method;
additional parameters should be extracted with coef
.
## S3 method for class 'breathtestfit'
tidy(x, ...)
x |
Object of class |
... |
other parameters passed to methods |
A tibble/data frame with columns
Patient Id (character)
Treatment or patient group (character)
Fraction metabolized
Time constant (1/minutes)
The so-called lag parameters, no dimension
Emptying half time in minutes as calculated following Maes/Ghoos
tidy
library(broom)
# Generate simulated data
data = cleanup_data(simulate_breathtest_data()$data)
# Fit with the population method
fit = nlme_fit(data)
# Output coefficients
tidy(fit)
# All coefficients in the long form
coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.