I am running a panel regression in R and have called my data set with the variables listed and i get an error message when i run the model that says:
"Error in `[[<-.data.frame`(`*tmp*`, time.name, value = c(1L, 2L, 3L, 4L, :replacement has 83498 rows, data has 83765"
I have no idea what this means and am trying to figure it out. I have my CSV and it has no NA's or missing values or anything i've already double checked. Here is the code.
Within.Model=plm(Cancelled~Length.Of.Agreement+Total.Contract.Value+Easy.Pay..Yes.or.No,data=Data,index="Year",model="within",effect("time"))
Any help would be appreciated.