sim_subcor: Simulate a single subset correlation of a randomly drawn...

Description Usage Arguments

Description

Simulate a single subset correlation of a randomly drawn subset of specified size

Usage

1
sim_subcor(dat, fraction, sampling = T)

Arguments

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


Thie1e/subsetcor documentation built on May 9, 2019, 4:41 p.m.