한 해의 사망률 데이터 시각화
이제 1999년 생명표에 어느 정도 익숙해졌으니, 여성 사망률 $q_x$가 나이 $x$에 따라 어떻게 변하는지 시각화해 볼까요? Cynthia의 선생님은 강의 자료에서 보통 사망률의 로그 값을 그립니다. 이 방법이 왜 좋은지 Cynthia에게 설득해 볼 수 있을까요?
이전 연습 문제에서 정의한 객체 life_table과 벡터 age, qx는 이미 로드되어 있어요.
이 연습은 강의의 일부입니다
R로 배우는 생명보험 상품 평가
연습 안내
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Plot the female mortality rates in the year 1999
plot(___, ___,
main = "Mortality rates (Belgium, females, 1999)",
xlab = "Age x",
ylab = expression(paste("Mortality rate ", q[x])),
type = "l")
# Plot the logarithm of the female mortality rates in the year 1999
plot(___, ___,
main = "Log mortality rates (Belgium, females, 1999)",
xlab = "Age x",
ylab = expression(paste("Log mortality rate ", log(q[x]))),
type = "l")