I am attempting to run a fixed effect model in plm
. My two components are "Sector" and "Date"
fixed <- plm(Value ~ Oil, data=Master, index=c("Sector", "Date"), model="within")
The data looks like:
Transportation , 03/09/2011
Transportation , 03/09/2011
Transportation , 03/22/2011
Transportation , 04/11/2011
Mining , 03/09/2011
Mining , 05/21/2011
When I enter the code it says there is an error with duplication. The first two rows of the data create "the same individual". Is there a way around this?