bf_test Calculates the Brown-Forsythe test for homogeneity
of variance across groups, coefficients, variance-covariance matrix,
and degrees of freedom.
bf_test(y, x, formula, data)numeric response variable.
categorical variable.
A formula object to specify the model as normally used by glm. Use 'factor' to define the grouping variable.
An objects of class milist, created by
df2milist, list2milist or mids2milist.
An object containing:
fstats F-test value, including numerator and
denominator degrees of freedom.
qhat pooled coefficients from fit.
vcov variance-covariance matrix.
dfcom degrees of freedom obtained from df.residual.
The Levene's test centers around means to calculate outcome residuals, the Brown-Forsythe test around the median.