A published covariance matrix of 4 variables, from a sample of 684.
One of 2 tables from the same source; this one is the anger4 table. The others are listed under Related tables.
| Description | Covariance matrix of state and trait anxiety and anger for 684 female students, from Cox & Wermuth (1996). |
|---|---|
| Reference | Cox, D. R., & Wermuth, N. (1996). Multivariate dependencies: Models, analysis and interpretation. Chapman and Hall. |
| Licence | GPL-2 |
| Source data | https://cran.r-project.org/package=ggm |
| Variables | 4 |
|---|---|
| Sample size (N) | 684 |
| Statistic | covariances |
| Kind of correlation | pearson |
| Positive definite | yes |
| Standard deviations reported | no |
| Means reported | no |
| Missing data | unknown |
| Population | female students |
| How it was captured | package transcription |
| Capture checked | no |
| Notes | covariance matrix; X = anxiety state, Y = anger state, Z = anxiety trait, U = anger trait (ggm help page); the study that collected the data is not named in ggm year left blank: ggm ?anger does not name the study that collected the data, and 1996 is the year of the book that published the matrix. women = 1: '684 female students' (ggm ?anger). |
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 1. U | ||||
| 2. X | ||||
| 3. Y | ||||
| 4. Z |
Lower triangle, as published. Red is a positive covariance, blue a negative one, coloured by the correlation it implies; the deeper the colour, the stronger. Hover over a cell for its value.
nstatvaluevar1var2
The layout (one row per cell of the lower triangle, diagonal included, with stat cor or cov, plus optional sd and mean rows; value as published; n the sample size behind the cell; group the sample, when a source published several) is defined in the IRW covariance standard.
Or load it directly in R (no account needed with irw 1.4.0 or later) or Python (needs a free Redivis account; the first call opens a browser to sign in):
# R
install.packages("irw")
library(irw)
df <- irw_fetch("cox_1996_anger4", source = "cov")
m <- irw_cov2matrix(df) # m$matrix, m$n: lavaan's sample.cov, sample.nobs
# Python
pip install irw
import irw
df = irw.fetch("cox_1996_anger4", source="cov")
m = irw.cov2matrix(df)
@book{Cox1996,
author = {Cox, D. R. and Wermuth, N.},
year = {1996},
title = {Multivariate dependencies: Models, analysis and interpretation},
publisher = {Chapman and Hall}
}
| IRW version | v800 |
|---|---|
| Redivis dataset | irw_cov v5.0 |
| Redivis dataset DOI | 10.57761/7r6x-8774 |
| Manifest pin for this IRW version | v5.0 |
| Metadata source | irw_meta v89.0 |