Model Fit for the Simulated Multivariate Panel Data
Source:R/dynamite-package.R
multichannel_example_fit.Rd
A dynamitefit
object obtained by running dynamite
on the
multichannel_example
dataset as
set.seed(1)
library(dynamite)
f <- obs(g ~ lag(g) + lag(logp), family = "gaussian") +
obs(p ~ lag(g) + lag(logp) + lag(b), family = "poisson") +
obs(b ~ lag(b) * lag(logp) + lag(b) * lag(g), family = "bernoulli") +
aux(numeric(logp) ~ log(p + 1))
multichannel_example_fit <- dynamite(
f,
data = multichannel_example,
time = "time",
group = "id",
chains = 1,
cores = 1,
iter = 2000,
warmup = 1000,
init = 0,
refresh = 0,
thin = 5,
save_warmup = FALSE
)
Note the small number of samples due to size restrictions on CRAN.
Source
THe data was generated via multichannel_example_fit.R
in
https://github.com/ropensci/dynamite/tree/main/data-raw/