easystats / correlation

:link: Methods for Correlation Analysis
https://easystats.github.io/correlation/
Other
429 stars 56 forks source link

bootstrapped confidence intervals #14

Open DominiqueMakowski opened 4 years ago

DominiqueMakowski commented 4 years ago

since we have several different types of correlations for which p values are not straightforward, would be nice to include a method for bootstrapped CI. Any advice?

strengejacke commented 4 years ago

Not sure, but isn't the approach simply the same as here?

https://github.com/easystats/parameters/blob/master/R/bootstrap_model.R

strengejacke commented 4 years ago

Or simply generate bootstrap replicates of the data (see https://github.com/strengejacke/sjstats/blob/master/R/bootstrap.R), then compute correlation function on the data and take quantiles from the results.

strengejacke commented 4 years ago

which functions actually might need bootstrapped CIs?

DominiqueMakowski commented 4 years ago

cor_test_freq and the ones relying on cor_to_ci, e.g., cor_test_biweight

DominiqueMakowski commented 4 years ago

See also https://github.com/easystats/correlation/issues/36

bwiernik commented 3 years ago

See alse #181