Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: pass lm() specific arguments (e.g., weights) to lm() calls #47

Open
vshsurgo opened this issue May 18, 2020 · 1 comment

Comments

@vshsurgo
Copy link

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()

@abuabara
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants