.delta_method | R Documentation |
Delta method point estimation
.delta_method(fit, x_new, se_interval = "confidence")
fit |
A fit object which is located inside a modeler object |
x_new |
A vector of x values to evaluate the function. |
se_interval |
A character string. "confidence" or "prediction". |
A data.frame of the evaluated values.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.