Requirements
- Two variables in your dataset that you want to test for correlation.
- You should use numeric variables as inputs. If you use categorical or ordinal variables, they will be coerced to numeric based on their values for the purposes of running the test.
Method
- From the toolbar menu, select Create > Test > Correlation.
- From the object inspector on the right, select your variables from the Variable 1 and Variable 2 drop-down box under Inputs.
- Two variables in your dataset that you want to test for correlation.
- You should use numeric variables as inputs. If you use categorical or ordinal variables, they will be coerced to numeric based on their values for the purposes of running the test.
- OPTIONAL: Select one of the following options for the Type of correlation:
- Pearson product-moment (default selection) - measures the strength and direction of a linear association between the two variables.
- Spearman rank-order - a non-parametric measure of the strength and direction of association that exists between two variables on an ordinal scale.
- Kendall's Tau-b - a nonparametric measure of the strength and direction of association that exists between two variables on an ordinal scale.
- Spearman rank-order and Kendall's Tau-b are rank-based measures of association which are useful when the data does not necessarily come from a bivariate normal distribution
- OPTIONAL: Select an Alternative hypothesis:
-
- Two-sided (selected by default)
- Correlation < 0 (one-sided test)
- Correlation > 0 (one-sided test)
- OPTIONAL: Select one of the following Outputs:
- Summary (selected by default) - shows a nicely formatted table of the test results.
- R - the original text-based output from the cor.test function.
- OPTIONAL: Tick the Variable names check box to display variable names in the output instead of variable labels.
- Tick the More decimal places checkbox to display numeric values in the output with 8 decimal places.
- Click Calculate to run the test and generate the output.
Next
How to Create a Correlation Matrix