check_constant_vars: Check if any variables in a model frame are constants (the...

View source: R/misc.R

check_constant_varsR Documentation

Check if any variables in a model frame are constants (the exception is that a constant variable of all 1's is allowed)

Description

Check if any variables in a model frame are constants (the exception is that a constant variable of all 1's is allowed)

Usage

check_constant_vars(mf)

Arguments

mf

A model frame or model matrix

Value

If no constant variables are found mf is returned, otherwise an error is thrown.


Biostatistics4SocialImpact/rstap documentation built on Aug. 1, 2022, 1:15 p.m.