Learn R Programming

EmpiricalDynamics (version 0.1.2)

compute_residuals: Compute Residuals from Symbolic Equation

Description

Calculates residuals from a fitted symbolic equation or SDE model.

Usage

compute_residuals(model, data, target = NULL)

Value

Numeric vector of residuals

Arguments

model

A symbolic_equation or sde_model object

data

Data frame containing the variables

target

Name of target variable (auto-detected if NULL)