# NOT RUN {
# for reproducibility
set.seed(123)
# in case of just one grouping variable
groupedstats::grouped_robustslr(
data = iris,
dep.vars = c(Sepal.Length, Petal.Length),
indep.vars = c(Sepal.Width, Petal.Width),
grouping.vars = Species
)
# }
Run the code above in your browser using DataLab