RemoveTopTerms: Remove all possible models with one unmoderated term removed

View source: R/lme4tools.R

RemoveTopTermsR Documentation

Remove all possible models with one unmoderated term removed

Description

Remove all possible models with one unmoderated term removed

Usage

RemoveTopTerms(form, randeff = "")

Arguments

form

A formula

randeff

The name of the group from which unmoderated terms should be removed. To remove from fixed effects, use "" (the default).

Value

A list of formulas which have one unmoderated term removed each. The name of each list item is the term which was removed.

Examples

RemoveTopTerms(a ~ b * c + d + (1|e))
#> $d
#> a ~ b + c + b:c + (1 | e)
#> $`b:c`
#> a ~ b + c + d + (1 | e)


Spiritspeak/skMisc documentation built on April 12, 2025, 5:40 a.m.