Dear xiaodao On 7 March 2012 05:19, xiaodao <yanghaow...@utk.edu> wrote: > I am using aidsEst( ) in "micEconAids" package to estimate Demand system. > But I would like to add more demographic variables in demand system. How can > I add those information? > > for example: > mydata<-data.frame(p1,p2,p3,p4, > s1,s2,s3,s4, > totalexp, > house,age,urban) > priceNames<-c("p1","p2","p3","p4") > shareNames<-c("s1","s2","s3","s4") > > estResult <- aidsEst(priceNames,shareNames,'totalexp',data=mydata, > method = "LA") > > for this step, estResult <- aidsEst(....), how to add more demographic > variables in this system?
You can use argument "shifterNames" for this. BTW: You can also ask questions, report problems, etc. about the micEconAids package via a forum or "tracker" at the R-Forge site [1] of the micEcon project [2]. [1] https://r-forge.r-project.org/projects/micecon/ [2] http://www.micEcon.org/ Best wishes from Copenhagen, Arne -- Arne Henningsen http://www.arne-henningsen.name ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.