Skip to contents

Helper to Modify Formulas

Usage

sub_formula(formula, yj)

Arguments

formula

The original formula whose response we want to modify.

yj

The desired response term for the formula.

Value

A new formula object with the LHS replaced by yj.