SOURCEBOOK

DEVISE | 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.

(CorrelationData) |> estimateCorrelations()

Test the correlation for statistical significance.

(CorrelationData) |> testCorrelations()