Functions to specify temporal random effects for ratio models. Temporal effects are shared between numerator and denominator by default, which helps prevent spurious ratio effects from temporally-structured unmeasured confounders.
Usage
# S3 method for class 'ratiod_temporal'
print(x, ...)Examples
temporal_rw1("year")
#> tulpaRatio temporal specification
#> ============================
#>
#> Type: RW1 (First-order Random Walk)
#> Time variable: year
#> Shared: Yes (enters both processes)
temporal_ar1("year")
#> tulpaRatio temporal specification
#> ============================
#>
#> Type: AR1 (First-order Autoregressive)
#> Time variable: year
#> Parameterization: centered
#> Shared: Yes (enters both processes)