add predicted values or residuals under FE projection
1 2 | add_predict(model, long, var_name, new_var_name,
var_name_weights = "omega", force_robust = FALSE, residuals = TRUE)
|
model |
list that describes the model specification |
long |
data.table |
var_name |
name of variable |
new_var_name |
name of new variable with residuals |
var_name_weights |
variable with weights |
force_robust |
logical, force using numerically stable (but possibly slow) algorithm to fit probit |
residuals |
logical, TRUE = compute residuals, FALSE = compute predicted values |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.