Perform the Pearson correlation tests between a vector y and every
variable from a matrix X (separately) and remove uncorrelated
variables. The function is much faster when you do not have any missing
values (set na = FALSE in prepare_data in that case).
Usage
reduce_matrix(data, minpv = 0.15)
Arguments
data
an object of class big.
minpv
a numeric. Variables with p-values for the Pearson correlation
tests larger than minpv will be removed from candidates.