Computes the effect of each tv() term in each period, with its standard
error from the covariance of the coefficients
(\(\mathrm{Var}(\hat\beta_t) = A V A^\top\), where \(A\) maps the
basis coefficients to the period effects), and pointwise confidence
intervals. The effects are the same for every basis; only the
coefficients differ.
Arguments
- object
a fitted model with
tv()terms.- term
optional names of the varying variables (
"(Intercept)"fortv(1, ...)); all by default.- level
confidence level.
- vcov
optional covariance matrix of the coefficients, such as a cluster-robust one;
vcov(object)by default.- ...
unused.
Value
A data frame with columns part ("mean" for the mean, otherwise
the coefficient block, such as "ln(alpha)"), term, time,
basis, period, estimate, std.error, conf.low and conf.high.
For a multivariate model (countreg_mv()) a first column outcome
names the outcome of each effect.
Details
Periods are summarized for tv() terms on their own; a tv() term in an
interaction (such as tv(x, time = t):z) is not summarized (with a
warning): write the product inside tv(), as tv(x * z, time = t).
For tv(x, time, basis = "smooth") the periods are the distinct time
values of the estimation data. Smooths written directly with s() are
not time-varying effects and are not reported.
