Open
Description
As discussed in out meeting yesterday, the correlation package should be broken down (and built up!) into the following "bits":
A simple 1:1 correlation function (currently done in cor_test()
- input: 2 vectors
- methods: any of the 10~ currently available
- Pearson correlations can also be Bayesian (via
BayesFactor
)
- Pearson correlations can also be Bayesian (via
- output: a tidy data frame - with CIs and p-values
The methods for tetrachoric, polychoric, and biserial correlations can be improved, I think.
Things left to do:
- Finish docs for
cor_test()
- address all
TODO
s - Fix unit tests
- Allow
x
andy
to be vectors?
A correlation "matrix" function
- input: a data frame (or data frames) with or without those handy
select
arguments.- should also support grouped data frames
- methods: same as for the 1:1 variant
- output: a tidy (long) data frame
- ... that can be transformed into a matrix-like output (currently via the
summary()
method).
- ... that can be transformed into a matrix-like output (currently via the
A function for part/partial correlation
This function will also produce multilevel correlations (#253, #207)?
- input: a data frame with those handy
select
arguments to control- Need to be able to control what x/y are and what z are, and if z is partialled out from x, y, or both.
- should also support grouped data frames?
- methods: only Pearson for now?
- output: a tidy (long) data frame
- ... that can be transformed into a matrix-like output (currently via the
summary()
method).
- ... that can be transformed into a matrix-like output (currently via the
Things to keep
- The current plotting options in
see
are good. - All the
cor_*()
functions also, I think? is.cor
andisSquare
(maybe rename to snake-case?)z_fisher()
(rename tofishers_z
, which is more inline with "named" statistic convention ineffectsize
?)
Also welcoming @TomGeva that will be working on this with @bwiernik and myself
WIP can be found here: https://github.com/TomGeva/correlation2
Metadata
Metadata
Assignees
Labels
No labels