rstatix
rstatix copied to clipboard
feature request: pass lm() specific arguments (e.g., weights) to lm() calls
stats::lm() takes additional arguments such as "weights". It would be great to be able to pass this argument to calls of it within anova_test() and factorial_design()
I need to use a weight correlation because some samples represent more population than others. I know how to do a weighted correlation matrix but not using cor_test (e.g., cor.wt {psych}, or cov.wt(data %>% select(-weight), wt=data$weight, cor=TRUE)).
Would it be possible to implement a weighted (and pairwise) correlation here? Super appreciate if there is help or recommendations.