View source: R/principal-component-analysis.R
fit_pcr | R Documentation |
주어진 데이터에 대하여 주성분 회귀모형을 추정한다.
fit_pcr(.data, .yvar, .xvar, .pc = NULL, .center = TRUE, .scale = TRUE)
.data |
관측 데이터 프레임. |
.yvar |
종속변수. |
.xvar |
독립변수. 독립변수가 여러 개일 때는 벡터 형태로 제공한다. (e.g. |
.pc |
추출할 주성분의 수. |
.center |
평균조정 여부. TRUE이면 각 독립변수에 대해 평균조정을 수행한다. |
.scale |
분산조정 여부. TRUE이면 각 독립변수에 대해 분산조정을 수행한다. |
리스트. 주성분을 독립변수로 하여 수행한 fit_linear_regression()
의 결과값.
data(biometric, package = "dmtr") fit <- fit_pcr(biometric, weight, c(age, height), .pc = 1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.