Analysis of associations between variables: Pearson's Product-Moment Correlation

Worksheets

In R first import the datafile DummyData, then calculate terms for the correlation for variables "Age", "Brightness" and "Size", then report the results:

> dummy <- read.table("/DummyData.txt", header=TRUE, sep="", na.strings="NA", dec=".", strip.white=TRUE)
> cor.test(dummy$Brightness, dummy$Size, alternative="two.sided", method="pearson")


last modified: 2/3/14