View source: R/principal-component-analysis.R
fit_pca | R Documentation |
주어진 데이터에 대하여 주성분을 분해한다.
fit_pca( .data, .xvar = tidyselect::everything(), .pc = NULL, .center = TRUE, .scale = TRUE )
.data |
관측 데이터 프레임. |
.xvar |
독립변수. 독립변수가 여러 개일 때는 벡터 형태로 제공한다. (e.g. |
.pc |
추출할 주성분의 수. |
.center |
평균조정 여부. TRUE이면 각 독립변수에 대해 평균조정을 수행한다. |
.scale |
분산조정 여부. TRUE이면 각 독립변수에 대해 분산조정을 수행한다. |
리스트. 고유치 eig
, 주성분행렬 score
,
상관로딩 loading
, 주성분 수 ncomp
, 주성분 변동 기여율 R2
,
평균조정 시 평균벡터 center
, 분산조정 시 표본표준편차 벡터 scale
.
data(biometric, package = "dmtr") fit1 <- fit_pca(biometric, c(age, height, weight), .pc = 2L) fit2 <- fit_pca(biometric, .pc = 2L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.