plm(years_alive ~ happy_binary, data = humans, index = c("location"), model = "within"))
im trying to see how whether if you are happy or not impacts ur life span. im controlling for location fixed effects with model "within". my issue is this error:
Error in (function (.. row.names = NULL, check.rows = FALSE, check.names = TRUE, :
arguments imply differing number of rows: 1,0
this is confusing since there is no NA in "location" , "years_alive", and "happy_binary". any idea what I can do to fix this. thank you !!!. I dont get this error when using regular regression