dropRedundantTerms: Drop redundant terms from the model

View source: R/dropRedundantTerms.R

dropRedundantTermsR Documentation

Drop redundant terms from the model

Description

Detect co-linear fixed effects and drop the last one

Usage

dropRedundantTerms(formula, data, tol = 0.001)

Arguments

formula

original formula

data

data.frame

tol

tolerance to test difference of correlation from 1 or -1

Value

a formula, possibly with terms omitted.

Examples


# Valid formula
dropRedundantTerms(~ group + extra, sleep)


GabrielHoffman/dreamlet documentation built on Nov. 23, 2024, 12:28 a.m.