Fits a regression with robust clustered standard errors. This uses a quasi-poisson family and returns the estimated coefficients after computing a clustered variance-covariance matrix.
1 2 3 4 5 6 | yotov_clustered_glm(
formula,
data,
pair = "pair_id",
fe_pattern = "^exporter|^importer"
)
|
formula |
A formula for the model |
data |
A tibble or data.frame |
pair |
Inter-national fixed effects column (defaults to "pair_id") |
fe_pattern |
A pattern for the fixed effects variable, allows character or regex (defaults to "^exporter|^importer") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.