시작하기무료로 시작하기

추정 방식 변경하기

이제 발생할 수 있는 오류를 해결할 수 있도록 추정 옵션을 변경해 보겠습니다. 유효한 결론을 내리고 있는지 확신하려면, 오류가 발생했을 때 반드시 해결하는 것이 중요합니다. songs 데이터는 이미 로드되어 있습니다.

이 연습은 강의의 일부입니다

rstanarm으로 배우는 Bayesian 회귀 모델링

강의 보기

연습 안내

  • song_agepopularity를 예측하는 두 개의 모델을 추정하세요
  • 첫 번째 모델에서는 adapt_delta를 0.99로 설정하세요
  • 두 번째 모델에서는 max_treedepth를 15로 설정하세요
  • 각 모델의 요약 결과를 확인하세요

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Estimate the model with a new `adapt_delta`
adapt_model <- ___(popularity ~ song_age, data = songs,
  ___ = list(___ = ___))

# View summary
___(adapt_model)

# Estimate the model with a new `max_treedepth`
tree_model <- ___(popularity ~ song_age, data = songs,
  ___ = list(___ = ___))

# View summary
___(tree_model)
코드 편집 및 실행