Formula-level wrapper over the matrix core LTZ implementation.
Examples
set.seed(3)
d <- data.frame(y = rnorm(80), x = rnorm(80), z = rnorm(80))
prior <- conley_prior_ltz(y ~ x | z, d, inst_vary = "z", sd = 0.1)
sp_ltz(y ~ x | z, d, prior$omega, prior$mu)
#> term estimate std.error conf.low conf.high
#> 1 (Intercept) -0.003841335 0.175378 -0.3475759 0.3398932
#> 2 x 1.221902261 5.489363 -9.5370506 11.9808551