PLM estimation Error in lm fit(x, y, offset = offset, singular.ok = singular.ok, ...)

BR1<- plm(Type_Breach ~ State+ Individuals + Entity_Type + Breach_Sub_Date+ Location_Breach,data = breach,na.action=na.exclude,model = "within")
the data is here and can be downloaded in excel
https://ocrportal.hhs.gov/ocr/breach/breach_report.jsf;jsessionid=9E2CF0CEC8B08F5E56E454F9576EE675

when i run this code


i get the following error:

Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
In addition: Warning messages:
1: In pdata.frame(data, index) :
duplicate couples (id-time) in resulting pdata.frame
to find out which, use e.g. table(index(your_pdataframe), useNA = "ifany")
2: In is.pbalanced.default(index[[1]], index[[2]]) :
duplicate couples (id-time)

3: In Ops.factor(e1, e2) : ‘-’ not meaningful for factors

I tried to debug as
any(is.na(breach)) but did not get anything.

Can someone help please

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.