Simulate a single subset correlation of a randomly drawn subset of specified size
1 | sim_subcor(dat, fraction, sampling = T)
|
dat |
data.frame or matrix with two columns which include the data |
fraction |
Size of the subset as percentage of nrow(dat), e.g. 0.3 |
sampling |
(logical) If TRUE, sample round(nrow(dat) * fraction) rows from the data to calculate the subset correlation. Otherwise take the first round(nrow(dat) * fraction) rows |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.