Displaying 1 result from an estimated 1 matches for "lnlexr".
Did you mean:
lnlexre
2012 Mar 25
1
'names' attribute must be the same length as the vector
...met into this problem when I tried to run panel regression by plm.
My code:
library(plm)
indus <- read.csv(file="full.csv",header=TRUE)
industry<-as.data.frame(indus)
reg<-lm(LnTSO2 ~ LnPGDP + LnPGDP2 + LnSOES + LnCOES + LnLIMD +
LnSHOLD + LnPRIV + LnFIEs + LnEXP + LnIMP + LnLEXRE + LnVALTAX +
LnIND1 + LnIND2 + LnIND3 + LnIND4 + LnIND5 + LnIND6 + LnIND7 +
LnIND8 + LnIND9, data=industry, model = "pooling")
*Error in names(y) <- namesy :
'names' attribute [1144] must be the same length as the vector [0]*
My data is attached showing as a scre...