simulate_and_check: Simulate and Check Model Fitting with Litter Data

View source: R/internal.R

simulate_and_checkR Documentation

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)

Arguments

model

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

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.

See Also

fit_litter, pineneedles


litterfitter documentation built on Aug. 29, 2023, 9:07 a.m.