powered by
Checks if models have balanced data.
is.balanced(object)
fitted model that includes variables attribute and model slot.
variables
model
Returns TRUE if balanced, FALSE if not.
# NOT RUN { 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