fepoisson | R Documentation |
A wrapper for feglm
with
family = poisson()
.
fepoisson(
formula = NULL,
data = NULL,
weights = NULL,
beta_start = NULL,
eta_start = NULL,
control = NULL
)
formula |
an object of class |
data |
an object of class |
weights |
an optional string with the name of the 'prior weights'
variable in |
beta_start |
an optional vector of starting values for the structural
parameters in the linear predictor. Default is
|
eta_start |
an optional vector of starting values for the linear predictor. |
control |
a named list of parameters for controlling the fitting
process. See |
A named list of class "feglm"
.
# check the feglm examples for the details about clustered standard errors
# subset trade flows to avoid fitting time warnings during check
set.seed(123)
trade_2006 <- trade_panel[trade_panel$year == 2006, ]
trade_2006 <- trade_2006[sample(nrow(trade_2006), 500), ]
mod <- fepoisson(
trade ~ log_dist + lang + cntg + clny | exp_year + imp_year,
trade_2006
)
summary(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.