I am trying to run clustered standard errors but I get the error: Error in model.matrix(x) : object 'model' not found.
The code is as follows:
reg1c <- felm(ethnic_fav ~ post + post_victory + male + age + age_sq + unemployed + rural + education | country_match_fe + language_year_id + dayweek + month + day | 0, data=dataset)
vcov <- cluster.vcov(reg1c, ~ country_year_fe)
At which point I get the error code. Do you know what I might be missing?