Label

Books (1) CARTO (3) Fun (21) GBDX (1) geoserver (1) GIS (57) greed (4) memo (4) movie (1) music (2) python (4) R (12) statistics (10) study (20) swim (5) tools (19) Ubuntu (7)

2012/06/24

Correlation Analysis

before running (Multiple) regression model, run correlation analysis

if the dataset follow the normal distribution,
run Pearson's correlation coefficient

otherwise,
run Spearman's rank correlation coefficient

R script;
>cor(dataset, method = "pearson")


>cor(var1, var2, method = "spearman")