--- title: "4. Singular Value Decomposition" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{4. Singular Value Decomposition} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ``` ```{r setup} library(bage) library(dplyr, warn.conflicts = FALSE) library(ggplot2) ``` ```{r} draws <- generate(HFD, n_draw = 200, age_labels = 15:49) |> mutate(age = as.integer(age), value = exp(value)) ggplot(draws, aes(x = age, y = value, group = draw)) + geom_line(alpha = 0.1) ```