How should it look? I was afraid it might have been wrong. My data set has following columns: year, country, sfd_indx, education, regime, year, age, gdp, gdppcap. regime, gdp, gdpcap are country level and I want to see the interaction between regime and education.
IV independent variables I did not want to specify. I have two independent variables; one is individual level the other one is country level. id_group is created by the following code: aut <- mutate(aut, group_id = aut$country)
I don't know if you are inventing your own syntax, using pseudocode; are have loaded some R package that provides functionality via a helper function IV()