Learn R Programming

mixlm (version 1.4.0)

is.balanced: Balance cheking of models.

Description

Checks if models have balanced data.

Usage

is.balanced(object)

Value

Returns TRUE if balanced, FALSE if not.

Arguments

object

fitted model that includes variables attribute and model slot.

Author

Kristian Hovde Liland

Examples

Run this code
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)

Run the code above in your browser using DataLab