How to save output of pooled OLS, fixed and random effect to excel? I have tried creating a data frame but it is showing a error that panel cannot be created into data frame.
df=data.frame(pmethod)
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class ‘c("plm", "panelmodel")’ to a data.frame
write.table(pmethod,file="pooled.csv",sep=",")
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class ‘c("plm", "panelmodel")’ to a data.frame