Problems with plm, duplicate time id's error
问题 I am running a fixed effects regression and am getting the following error: fixed_effects <- plm(GNI ~ lag(GNI) + imposition + ExpImp + democ, data = sanctions_data6, index = c("country", "sanctions_period"), model = "within", effect = "twoways") duplicate couples (time-id) Error in pdim.default(index[[1]], index[[2]]) : I am aware that it means that i have duplicate time periods for the same observations. However the whole observations are not duplicates of each other as they represent