.delta_method_auc {flexFitR} | R Documentation |
Delta method AUC estimation
Description
Delta method AUC estimation
Usage
.delta_method_auc(fit, x_new, n_points = 1000)
Arguments
fit |
A fit object which is located inside a modeler object |
x_new |
A vector of size 2 given the interval to calculate the area under. |
n_points |
Numeric value giving the number of points to use in the trapezoidal method. |
Value
A data.frame 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)
# AUC Prediction
predict(mod_1, x = c(0, 108), type = "auc", id = 2)
[Package flexFitR version 1.2.0 Index]