# \donttest{
# Random effects with covariates
hm(
id = id(cid),
vars = vars(gdp + democracy),
name = cname,
type = "RE"
)
# Random intercepts only
hm(
id = id(cid),
vars = NULL,
type = "RE"
)
# Fixed effects
hm(
id = id(cid),
vars = NULL,
name = cname,
type = "FE",
showFE = TRUE # Show estimates for each country
)
# Autoregressive random effects
hm(
id = id(cid),
vars = NULL,
type = "RE",
ar = TRUE # Effects evolve over time
)
# }
Run the code above in your browser using DataLab