모델 통계를 깔끔하게 추출하기
이 연습 문제에서는 tidy()와 glance() 함수를 사용하여 algeria_model에서 정보를 깔끔하게 추출해 봅니다.
선형 모델의 경우, tidy()는 모델 계수를 추출하고, glance()는 \(R^2\) 등의 모델 통계량을 반환합니다.
이 연습은 강의의 일부입니다
Tidyverse로 배우는 Machine Learning
연습 안내
tidy()를 사용하여algeria_model의 계수 정보를 정돈된 데이터 프레임으로 추출하세요.glance()를 사용하여algeria_model의 모델 통계량을 추출하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
library(broom)
# Extract the coefficients of the algeria_model as a data frame
___
# Extract the statistics of the algeria_model as a data frame
___