predict_linear_regression | R Documentation |
주어진 계수를 이용하여 새 데이터에 대해 종속변수값을 예측한다.
predict_linear_regression( .fit, .new_data, .xvar, .ci_interval = 0, .pi_interval = 0 )
.fit |
회귀모형 추정 결과. |
.new_data |
새 관측 데이터 프레임. |
.xvar |
예측에 사용될 변수. |
.ci_interval |
평균반응치 신뢰구간. 0(default값)인 경우 신뢰구간을 구하지 않으며, 0 과 1 사이일 경우 |
.pi_interval |
미래반응치 예측구간. 0(default값)인 경우 예측구간을 구하지 않으며, 0 과 1 사이일 경우 |
애측값 데이터프레임.
data(biometric, package = "dmtr") fit <- fit_linear_regression(biometric, weight, c(age, height)) predict_linear_regression(fit, biometric, c(age, height)) predict_linear_regression(fit, dplyr::tibble(age = 40, height = 170), c(age, height), .ci_interval = 0.95) predict_linear_regression(fit, dplyr::tibble(age = 40, height = 170), c(age, height), .pi_interval = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.