meta.sub.semipart {vcmeta} | R Documentation |
Confidence interval for a subgroup difference in average semipartial correlations
Description
Computes the estimate, standard error, and confidence interval for a difference in average semipartial correlations for two subgroups of mutually exclusive studies. Each subgroup can have one or more studies.
Usage
meta.sub.semipart(alpha, n, cor, r2, group)
Arguments
alpha |
alpha level for 1-alpha confidence |
n |
vector of sample sizes |
cor |
vector of estimated semi-partial correlations |
r2 |
vector of squared multiple correlations for a model that includes the IV and all control variables |
group |
vector of group indicators:
|
Value
Returns a matrix with three rows:
Row 1 - estimate for Set A
Row 2 - estimate for Set B
Row 3 - estimate for difference, Set A - Set B
The columns are:
Estimate - estimated average correlation or difference
SE - standard error
LL - lower limit of the confidence interval
UL - upper limit of the confidence interval
Examples
n <- c(55, 190, 65, 35)
cor <- c(.40, .65, .60, .45)
r2 <- c(.25, .41, .43, .39)
group <- c(1, 1, 2, 0)
meta.sub.semipart(.05, n, cor, r2, group)
# Should return:
# Estimate SE LL UL
# Set A: 0.525 0.05955276 0.3986844 0.6317669
# Set B: 0.600 0.07931155 0.4221127 0.7333949
# Set A - Set B: -0.075 0.09918091 -0.2587113 0.1324682