[R] Demographic Variables in AIDS (Demand System)
Arne Henningsen
arne.henningsen at googlemail.com
Wed Mar 7 07:04:22 CET 2012
Dear xiaodao
On 7 March 2012 05:19, xiaodao <yanghaowang at 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
More information about the R-help
mailing list