Estimates how the residual variance depends on state variables, used for constructing the diffusion term of an SDE.
model_conditional_variance(
residuals,
predictors,
data = NULL,
method = c("symbolic", "linear", "quadratic", "gam", "constant"),
transform = c("absolute", "squared", "log_squared"),
...
)An object of class "variance_model" containing the fitted model
Numeric vector of residuals
Formula or data frame of predictor variables (or vector of names)
Data frame (if predictors is a formula or vector of names)
Modeling method: "symbolic", "linear", "quadratic", "gam", or "constant"
Transformation of residuals: "squared", "absolute", or "log_squared"
Additional arguments passed to the modeling function