I have a panel data set which contains year, ccode (countrycode), iso, loans, crisisJST (whether the year was a systemic crisis year or not). I want to do a probit regression with the function 'probitmfx' and induce 'ccode' as fixed effects. I wanted to use 'factor(ccode)' to include dummy variables but it shows me the following error:
probitmfx(crisisJST ~ laons + factor(ccode), clustervar1 = "iso", data = data_post)
Error in factor(ccode) : Object 'ccode' not found
Is there another option to include fixed effects?