s2bak.addPred: Add predictor to the formula.

View source: R/s2bak_etc.R

s2bak.addPredR Documentation

Add predictor to the formula.

Description

Adds 'so' (or other specified predictor) to the formula as an additional predictor. The arugment 'formula' assumes the formula follows a "Y ~ X" format. The function will not add the predictor if it is already in the formula.

Usage

s2bak.addPred(formula, pred = "so")

Arguments

formula

Formula or list of formulas to add 'pred' to

pred

Predictor name to add to formula

Value

A formula with added predictor


leung-lab/s2bak documentation built on March 1, 2023, 9:10 a.m.