njtierney / yahtsee

Yet Another Hierachical Time Series Extension and Expansion
http://yahtsee.njtierney.com/
Other
2 stars 1 forks source link

make Intercept term optional #14

Closed njtierney closed 3 years ago

njtierney commented 3 years ago

Currently the intercept term is added to the model automatically, but we could have a way to have no intercept by doing the following:

  1. detect 0 in a formula (e.g., y ~ 0 + beta)
  2. Replace Intercept with 0 in the inla modelling step

Or something similar

mitchelloharawild commented 3 years ago

If the model is written with the fabletools framework, there is a helper special for handling xregs using the standard R formula interface: https://github.com/tidyverts/fabletools/blob/4441118552964f7c051d50ac0c3dad4058d556ec/R/specials.R#L21-L73

njtierney commented 3 years ago

Neat! Silly question - what is an xreg?

mitchelloharawild commented 3 years ago

An exogenous regressor :smile: