I need to run a regression on a panel data . It has 3 dimensions (Year * Company * Country). For example:
============================================ year | co
I think you can also do:
df <-transform(df, ID = as.numeric(interaction(comp, count, drop=TRUE)))
And then estimate
result <- plm(value.y ~ value.x, data = df, index = ("ID","year"))