[R] pgmm error message, Error in terms.default(formula) : no terms component nor attribute

Xin Shi X.Shi at mmu.ac.uk
Fri Jan 22 14:23:47 CET 2016


Dear

I try to use pgmm to estimate dynamic model for panel data. I got the message below. It is appreciate that you could help on this. data<-read.csv("G:/MMU/Research/Urbanlisation/paneldata.csv",sep=",", header=TRUE) library(plm) library(Formula) urban<-pdata.frame(data, index=c("id","year_begin")) y<-urban[,7] x1<-urban[,8] x2<-urban[,9] x3<-urban[,10] x4<-urban[,11] z1<-pgmm(formula=y~lag(y,0:1)+x2+x3+x4,data=urban, effect = "twoways", model = "twosteps") Error in terms.default(formula) : no terms component nor attribute

Xin
-------
Dr.Xin Shi
Reader in Applied Statistics
Director of DBA Programme
Room 609
Department of Marketing, Operations and Digital Business
Business School
All Saints Campus
Manchester Metropolitan University
Oxford Road
Manchester
M15 6BH
United Kingdom
E-mail: X.Shi at mmu.ac.uk<mailto:X.Shi at mmu.ac.uk>
Telephone: +44 (0)161 247 3841
Fax: +44(0)161 247 6305
Office Hours: Wed 1-3pm.
http://www.business.mmu.ac.uk/staff/staffdetails.php?uref=423
http://www.mmu.ac.uk/dba

"Before acting on this email or opening any attachments you should read the Manchester Metropolitan University email disclaimer available on its website http://www.mmu.ac.uk/emaildisclaimer "

	[[alternative HTML version deleted]]



More information about the R-help mailing list