Learn R Programming

litterfitter (version 0.1.4)

simulate_and_check: Simulate and Check Model Fitting with Litter Data

Description

This internal function first fits a model to the pineneedles data from the litterfitter package using the fit_litter function. Next, it introduces random noise to the mass remaining data and refits the model to this perturbed data. The function returns whether the time to proportion mass remaining values from the two fits are within ten percent of each other.

Usage

simulate_and_check(model)

Value

Logical. TRUE if the time to proportion mass remaining values from the original and simulated fits are within ten percent of each other; FALSE otherwise.

Arguments

model

A character string representing the model type to be fitted using fit_litter.

See Also

fit_litter, pineneedles