Skip to contents

Estimate Semipartial Correlation Coefficients and the Corresponding Sampling Covariance Matrix

Usage

SCorDelta(object, alpha = c(0.05, 0.01, 0.001))

Arguments

object

Object of class betadelta, that is, the output of the BetaDelta() function.

alpha

Numeric vector. Significance level \(\alpha\).

Value

Returns an object of class esdelta which is a list with the following elements:

call

Function call.

fit

The argument object.

args

Function arguments.

vcov

Sampling covariance matrix of semipartial correlation coefficients.

est

Vector of semipartial correlation coefficients.

fun

Function used ("SCorDelta").

Details

The sampling covariance matrix is obtained by the delta method from the sampling covariance matrix of the variances and covariances stored in object (normal-theory or asymptotically distribution-free). Two or more regressors are required.

Let \(\boldsymbol{\beta}^{\ast}\) be the vector of standardized slopes, \(\boldsymbol{R}_{x}\) the correlation matrix of the regressors, \(r^{jj}\) the \(j\)th diagonal element of \(\boldsymbol{R}_{x}^{-1}\), and \(R^{2} = \boldsymbol{\beta}^{\ast\prime} \boldsymbol{R}_{x} \boldsymbol{\beta}^{\ast}\). The semipartial correlation of regressor \(j\) is $$sr_{j} = \beta^{\ast}_{j} / \sqrt{r^{jj}} = \beta^{\ast}_{j} \sqrt{1 - R^{2}_{j \cdot -j}},$$ where \(R^{2}_{j \cdot -j}\) is the R-squared from regressing regressor \(j\) on the other regressors. Its square, \(sr^{2}_{j}\), is the change in \(R^{2}\) when regressor \(j\) is added last. Because \(1 / r^{jj} = 1 - R^{2}_{j \cdot -j}\), \(sr_{j}\) shrinks toward zero as regressor \(j\) becomes more redundant with the other regressors. The sign of \(sr_{j}\) follows the sign of \(\beta^{\ast}_{j}\). For an effect size \(g\left( \boldsymbol{\theta}^{\ast} \right)\) that is a function of the standardized parameters, the sampling variance is approximated by the delta method, $$\widehat{\operatorname{var}} \left( \hat{g} \right) = \boldsymbol{J}_{g} \, \widehat{\boldsymbol{\Sigma}}_{\boldsymbol{\theta}^{\ast}} \, \boldsymbol{J}_{g}^{\prime},$$ where \(\boldsymbol{J}_{g}\) is the Jacobian of \(g\) and \(\widehat{\boldsymbol{\Sigma}}_{\boldsymbol{\theta}^{\ast}}\) is the sampling covariance matrix stored in object (BetaDelta()).

See also

Author

Ivan Jacob Agaloos Pesigan

Examples

# Data ---------------------------------------------------------------------
data("nas1982", package = "betaDelta")

# Fit Model in lm ----------------------------------------------------------
object <- stats::lm(
  formula = QUALITY ~ NARTIC + PCTGRT + PCTSUPP,
  data = nas1982
)

# BetaDelta ----------------------------------------------------------------
std <- BetaDelta(object = object)

# SCorDelta ----------------------------------------------------------------
out <- SCorDelta(object = std)

## Methods -----------------------------------------------------------------
print(x = out)
#> Call:
#> SCorDelta(object = std)
#> 
#> Semipartial correlations with MVN standard errors:
#>            est     se      z     p  0.05%   0.5%   2.5%  97.5%  99.5% 99.95%
#> NARTIC  0.4312 0.0772 5.5850 0e+00 0.1771 0.2323 0.2798 0.5825 0.6300 0.6852
#> PCTGRT  0.3430 0.0742 4.6225 0e+00 0.0988 0.1519 0.1976 0.4884 0.5341 0.5872
#> PCTSUPP 0.2385 0.0702 3.3957 7e-04 0.0074 0.0576 0.1008 0.3761 0.4194 0.4696
summary(object = out)
#> Call:
#> SCorDelta(object = std)
#> 
#> Semipartial correlations with MVN standard errors:
#>            est     se      z     p  0.05%   0.5%   2.5%  97.5%  99.5% 99.95%
#> NARTIC  0.4312 0.0772 5.5850 0e+00 0.1771 0.2323 0.2798 0.5825 0.6300 0.6852
#> PCTGRT  0.3430 0.0742 4.6225 0e+00 0.0988 0.1519 0.1976 0.4884 0.5341 0.5872
#> PCTSUPP 0.2385 0.0702 3.3957 7e-04 0.0074 0.0576 0.1008 0.3761 0.4194 0.4696
coef(object = out)
#>    NARTIC    PCTGRT   PCTSUPP 
#> 0.4311525 0.3430075 0.2384789 
vcov(object = out)
#>               NARTIC        PCTGRT       PCTSUPP
#> NARTIC   0.005959479 -0.0014361982 -0.0010306185
#> PCTGRT  -0.001436198  0.0055062785 -0.0008864647
#> PCTSUPP -0.001030619 -0.0008864647  0.0049321187
confint(object = out, level = 0.95)
#>             2.5 %    97.5 %
#> NARTIC  0.2798479 0.5824571
#> PCTGRT  0.1975698 0.4884453
#> PCTSUPP 0.1008325 0.3761253