SOURCEBOOK

DEVISE Articles

Data Analysis | Correlations

Prior to the steps below, enter the data as appropriate for the analyses (described elsewhere). As always, the following commands should be typed directly in the R console window.

Obtaining Descriptive Statistics

Get the means and standard deviations for the variables.

(CorrelationData) |> describeMoments()

Get the covariance matrix for the variables.

(CorrelationData) |> describeCovariances()

Get the correlation matrix for the variables.

(CorrelationData) |> describeCorrelations()

Obtaining Inferential Statistics

Get the correlation and its confidence interval. Though the confidence interval defaults to 95%, it can be changed if desired.

(CorrelationData) |> estimateCorrelations()
(CorrelationData) |> estimateCorrelations(conf.level = .99)

Test the correlation for statistical significance.

(CorrelationData) |> testCorrelations()