is.balanced: Balance cheking of models.

Description Usage Arguments Value Author(s) Examples

Description

Checks if models have balanced data.

Usage

1
is.balanced(object)

Arguments

object

fitted model that includes variables attribute and model slot.

Value

Returns TRUE if balanced, FALSE if not.

Author(s)

Kristian Hovde Liland

Examples

1
2
3
4
5
mixlm <- lm(y~x*r(z),
		    data = data.frame(y = rnorm(8),
							  x = factor(c(rep(1,4),rep(0,4))),
							  z = factor(rep(c(1,0),4))))
is.balanced(mixlm)

Example output

Attaching package: 'mixlm'

The following objects are masked from 'package:stats':

    glm, lm

[1] TRUE

mixlm documentation built on May 2, 2019, 6:08 p.m.

Related to is.balanced in mixlm...