autoplot.feglm | R Documentation |
Extracts the estimated coefficients and their confidence intervals.
Extracts the estimated coefficients and their confidence
## S3 method for class 'feglm'
autoplot(object, ...)
## S3 method for class 'felm'
autoplot(object, ...)
object |
A fitted model object. |
... |
Additional arguments passed to the method. In this case,
the additional argument is |
A ggplot object with the estimated coefficients and their confidence intervals.
A ggplot object with the estimated coefficients and their confidence intervals.
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
)
autoplot(mod, conf_level = 0.99)
set.seed(123)
trade_2006 <- trade_panel[trade_panel$year == 2006, ]
trade_2006 <- trade_2006[trade_2006$trade > 0, ]
trade_2006 <- trade_2006[sample(nrow(trade_2006), 500), ]
trade_2006$log_trade <- log(trade_2006$trade)
mod <- felm(
log_trade ~ log_dist + lang + cntg + clny | exp_year + imp_year,
trade_2006
)
autoplot(mod, conf_level = 0.90)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.