View source: R/replace_flat_fits.R
replace_flat_fits | R Documentation |
This function considers fits with a slope less than defined in threshold flat and tries to replace them with non-flat fits from other years.
replace_flat_fits(
path_to_postfit_rdata,
flat = NULL,
threshold = 0.01,
plot = FALSE
)
path_to_postfit_rdata |
Path to the Rdata file that contains raw data, fitted data and fitcoefficients saved by the emulator function |
flat |
If you want this function to replace further fits provide their region and year here using a vector of the form c("LAM:2020,2025", "IND:2005") |
threshold |
Defines the value of the slope (b) below which fits are considered flat |
plot |
logical. If TRUE supply curves will be saved to png files |
David Klein
emulator
fill_missing_years
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.