powered by
(partial) correlation test
cor_test(x, y, z = NULL, level = 0.05)
A numeric vector
A numeric vector representing the first variable.
A numeric vector representing the second variable.
An optional numeric vector or matrix of control variables. If provided, partial correlation is computed.
(optional) Significance level. Default is 0.05.
gzma = sf::read_sf(system.file('extdata/gzma.gpkg',package = 'sdsfun')) cor_test(gzma$PS_Score,gzma$EL_Score)
Run the code above in your browser using DataLab