tw_model | R Documentation |
This function will take the result of data generated by the
tw_data
function and fit panel data models
using the plm
model-fitting function.
Available models include standard fixed effects models (1-way
and 2-way), random effects models and pooled OLS.
tw_model(gendata, models = c("randomfx", "wfe"), binary_outcome = FALSE)
gendata |
A data frame of simulated panel data procued by
|
models |
Whether to include random effects estimates in the returned data frame (defaults to true). |
The function returns a data.frame
with the coefficients
of all of the requested models (includes 1-way and 2-way FE models by default).
## Not run:
# generate panel data
gendata <- tw_data()
# estimate panel models
estimates <- tw_model(gendata)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.