Skip to contents

Fitting mass loss

Fit decomposition models to single-cohort mass loss data.

fit_litter()
Fit different models to single cohort decomposition data
fit_litter_all()
Fit several decomposition models to the same data
as_litfit_list()
Combine existing fits into a litfit_list
print(<litfit_list>) glance(<litfit_list>) tidy(<litfit_list>) augment(<litfit_list>) coef(<litfit_list>) `[`(<litfit_list>)
Methods for litfit_list objects
predict(<litfit>)
Predict method for litfit objects
logLik(<litfit>)
Log-likelihood of a litfit object

Element dynamics

Fit element (nutrient) remaining as a function of mass remaining.

Derived quantities

time_to_prop_mass_remaining()
Get the predicted time until half mass loss for a litter decomposition trajectory
steady_state()
Estimate Steady State Biomass

Uncertainty

bootstrap_parameters()
Create a bootstrap distribution of a particular coefficient from a model fit
summary(<litfit_bootstrap>)
Summarise a bootstrap distribution of parameters from a litfit object

Plotting

Base graphics methods and ggplot2 autoplot() methods.

plot(<litfit>)
Plot a decomposition trajectory and its fitted curve
plot(<elementfit>)
Plot an element fit
plot(<litfit_list>)
Plot several fits to the same data
plot_multiple_fits()
Fit and plot several models on one graph with model selection results
plot(<litfit_bootstrap>)
Plot bootstrap distributions
autoplot(<litfit>) autoplot(<elementfit>) autoplot(<litfit_list>) autoplot(<litfit_bootstrap>)
ggplot2 plots of litterfitter fits

Tidy output

Results as data frames, following the conventions of the broom package.

tidy(<litfit>) glance(<litfit>) augment(<litfit>)
Tidy, glance and augment methods for litfit objects
tidy(<litfit_bootstrap>)
Tidy a bootstrap distribution
reexports tidy glance augment
Objects exported from other packages

Data and package

pineneedles
decomposition trajectory for pine needles
litterfitter-package litterfitter
litterfitter: methods for fitting curves to litter decomposition trajectories