coef.breathtestfit {breathtestcore} | R Documentation |
S3 coef and summary for breathtestfit
Description
Function coef
extracts the estimates such as t50,
tlag, from fitted 13C beta exponential models. The result is the same
as fit$coef
, but without
column stat
, which always is "estimate"
for nls_fit
and nlme_fit
.
The summary
method only extracts t50
by the Maes/Ghoos method
Usage
## S3 method for class 'breathtestfit'
coef(object, ...)
Arguments
object |
|
... |
other parameters passed to methods |
Examples
# Generate simulated data
data = cleanup_data(simulate_breathtest_data())
# Fit with the population method
fit = nlme_fit(data)
# All coefficients in the long form
coef(fit)
# Access coefficients directly
fit$coef
# Only t50 by Maes/Ghoos
# Can also be used with stan fit (slow!)
## Not run:
if (require("breathteststan")) {
fit = stan_fit(data, iter = 300, chain = 1)
coef(fit)
# We get quantiles here in key/value format
unique(fit$coef$stat)
}
## End(Not run)
[Package breathtestcore version 0.8.7 Index]