ff: Function for point estimation

View source: R/04_predict.R

ffR Documentation

Function for point estimation

Description

Function for point estimation

Usage

ff(params, x_new, curve, fixed_params = NA)

Arguments

params

A vector of parameter values.

x_new

A vector of x values to evaluate the function.

curve

A string. The name of the function used for curve fitting.

fixed_params

A vector of fixed parameter values. NA by default.

Value

A vector of the evaluated values.

Examples

library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
  modeler(
    x = DAP,
    y = Canopy,
    grp = Plot,
    fn = "fn_lin_plat",
    parameters = c(t1 = 45, t2 = 80, k = 0.9),
    subset = c(15, 2, 45)
  )
print(mod_1)
# Point Prediction
predict(mod_1, x = 45, type = "point", id = 2)

flexFitR documentation built on April 16, 2025, 5:09 p.m.