VarianceTest performs variance homogeneity tests including Ftest, Bartlett, Brown-Forsythe and Fligner-Killeen tests.
VarianceTest(
formula,
data,
alpha = 0.05,
method = c("Bartlett", "Brown-Forsythe", "Fligner-Killeen", "Fisher", "Levene"),
na.rm = TRUE
)
Get bivariate portfolio weights
a formula of the form lhs ~ rhs where lhs gives the sample values and rhs the corresponding groups.
a tibble or data frame containing the variables in the formula formula
the level of significance to assess variance homogeneity. Default is set to alpha = 0.05.
a character string to select one of the variance homogeneity tests: "Bartlett", "Brown-Forsythe", "Fisher" and "Fligner-Killeen".
Ha logical value indicating whether NA values should be stripped before the computation proceeds.
David Gabauer
Antonakakis, N., Cunado, J., Filis, G., Gabauer, D., & de Gracia, F. P. (2020). Oil and asset classes implied volatilities: Investment strategies and hedging effectiveness. Energy Economics, 91, 104762.