기초적인 분석 방법
dataset을 test_data라 하면,
간단히 상관계수만 알고 싶다면 (기본 pearson)
cor(test_data)
상관계수 도출 메소드를 바꾸고 싶다면
cor(test_data, method = "kendall") - pearson, kendall, spearman 중 선택
spearman : non-parametric test(rank), measure the degree of association between two variables
(data distribution 고려 안함)
kendall: non-parametric test(rank), measures the strength of dependence between two variables.
그래프와 상관계수를 함께 보고 싶다면
library(PerformanceAnalytics)
chart.Correlation(test_data)
PerformanceAnalytics 라이브러리가 없다면
install.packages("PerformanceAnalytics") 로 설치
'Lab Notes' 카테고리의 다른 글
파워포인트에서 수학 기호 입력 (0) | 2015.07.11 |
---|---|
Definition of stationary singal (0) | 2015.06.22 |
Stationary process, Cyclostationary process (0) | 2014.12.17 |
Quasiperiodic function (준주기적 함수) (0) | 2014.12.16 |
WEKA OutOfMemory 창이 뜰때 (0) | 2014.10.02 |