getFormulaPredictors: Get predictors specified in a formula.

View source: R/helper.R

getFormulaPredictorsR Documentation

Get predictors specified in a formula.

Description

Gets additional predictor(s) specified as a formula for plotResiduals, recalculateResiduals, testCategorical, testQuantiles, testTemporalAutocorrelation, testSpatialAutocorrelation. Predictors are extracted from the data frame stored in the model object. If observations were removed during model fitting due to NAs, these rows are excluded automatically by getFormulaPredictors.

Usage

getFormulaPredictors(simulationOutput, formula)

Arguments

simulationOutput

simulationOutput (DHARMa object).

formula

the formula to be evaluated, typically consisting of one variable except for plotResiduals (optional multiple variables) and testSpatialAutocorrelation (mandatory x and y).


DHARMa documentation built on Nov. 7, 2026, 5:08 p.m.