
Forecast probabilities of smoking initiation, quitting and relapse
Source:R/quit_forecast.R
quit_forecast.RdForecasts trends in transition probabilities using a Lee-Carter style Singular Value Decomposition (SVD) model.
Arguments
- data
Data table with input probabilities.
- forecast_var
Character - variable to forecast.
- forecast_type
"continuing" (linear trend) or "stationary" (constant).
- cont_limit
Integer - year where forecast becomes stationary.
- oldest_year
Integer - start of historical data.
- youngest_age
Integer - min age.
- oldest_age
Integer - max age.
- first_year
Integer - start year for trend fitting.
- jump_off_year
Integer - end year of historical data.
- time_horizon
Integer - end year of forecast.
- smooth_rate_dim
Vector - dimensions for raster smoothing (c(3,3)).
- k_smooth_age
Integer - knots for smoothing age component.