Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

partialcor

Calculate partial correlations


Description

Calculate partial correlation coefficients and confidence limits via Fishers z-transform

Usage

partialcor(formula, data, level = 0.95, ...)

Arguments

formula

formula speciying the covariates and optionally the outcomes to calculate partial correlation for

data

data.frame

level

Level of confidence limits

...

Additional arguments to lower level functions

Value

A coefficient matrix

Author(s)

Klaus K. Holst

Examples

m <- lvm(c(y1,y2,y3)~x1+x2)
covariance(m) <- c(y1,y2,y3)~y1+y2+y3
d <- sim(m,500)
partialcor(~x1+x2,d)

lava

Latent Variable Models

v1.6.10
GPL-3
Authors
Klaus K. Holst [aut, cre], Brice Ozenne [ctb], Thomas Gerds [ctb]
Initial release
2021-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.