| dmgf_fit_one_curve | R Documentation |
Internal helper used by [dm.growth.fit()] to fit one curve for one series and one season, or one pooled curve.
dmgf_fit_one_curve(
x_obs,
y_obs,
x_pred,
season_start_date = as.Date(NA),
season_length = NA_real_,
season_id = NULL,
method,
loess_span,
spline_df,
growth_fraction,
min_unique_growth,
rate_threshold_fraction = 0.1,
fix_a_to_observed_max = FALSE,
fixed_a_multiplier = 1,
start_value_gompertz_parameters,
start_value_richards_parameters
)
x_obs |
Observed x values. |
y_obs |
Observed growth values. |
x_pred |
Prediction x values. |
season_start_date |
Season start date. |
season_length |
Season length. |
season_id |
Optional season ID for pooled fits. |
method |
Fitting method. |
loess_span |
Loess span. |
spline_df |
Spline degrees of freedom. |
growth_fraction |
Growth fractions used for cumulative timing. |
min_unique_growth |
Minimum number of unique growth values. |
rate_threshold_fraction |
Fraction of peak rate used for rate timing. |
fix_a_to_observed_max |
Logical. |
fixed_a_multiplier |
Multiplier for fixed asymptote. |
start_value_gompertz_parameters |
Starting values for Gompertz. |
start_value_richards_parameters |
Starting values for logistic/Richards. |
List with fitted predictions and parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.