I am new to R and this is probably a stupid question, but i've been trying to run a random Effects Panel Regression with self collected Data of Communityears, political Engagement = Y and a Treatment = X. Over a time Sequence of 9 Years. Whenever I try to do the Regression and create the communityyear Index this error Message comes up:
model.pooling = plm(polit.Engagement_k ~ JMW_k + AG$X1 + AG$x2 + AG$X3 + AG$X4 + AG$X5 + AG$X6,
data=AG_D,index = c("AG_D$Gemeinde", "Jahr"), model="pooling")
Error in pdata.frame(data, index) : variable AG_D$Gemeinde does not exist (individual index)
I have already converted the csv. file with BOM (by means of Notepoad++) into a csv. file without BOM and through colnames. I found out that the Variable exists.
- What is the Individual Index?
- Do you have any Idea how to solve this?
Thank you very much for your answers.