R/pool_cor.R
pool_cor.Rdpool_cor Calculates the pooled correlation coefficient and
Confidence intervals.
pool_cor(
data,
conf.level = 0.95,
dfcom = NULL,
statistic = TRUE,
df_small = TRUE,
approxim = "tdistr"
)An object of class 'mistats' ('Multiply Imputed Statistical Analysis'.) or a m x 2 matrix with C-index values and standard errors in the first and second column. For the latter option dfcom has to be provided.
conf.level Confidence level of the confidence intervals.
Number of completed-data analysis degrees of freedom.
Default number is taken from function cindex
if TRUE (default) the test statistic and p-value are provided, if FALSE these are not shown. See details.
if TRUE (default) the (Barnard & Rubin) small sample correction for the degrees of freedom is applied, if FALSE the old number of degrees of freedom is calculated.
if "tdistr" a t-distribution is used (default), if "zdistr" a z-distribution is used to derive a p-value for the test statistic.
An object of class mipool from which the following objects
can be extracted:
cor correlation coefficient
SE standard error
t t-value (for confidence interval)
low_r lower limit of confidence interval
high_r upper limit of confidence interval
statistic test statistic
pval p-value
Rubin's Rules are used for pooling. The correlation coefficient is
first transformed using Fisher z transformation (function cor2fz) before
pooling and finally back transformed (function fz2cor). The test
statistic and p-values are obtained using the Fisher z transformation.