Displaying 1 result from an estimated 1 matches for "cross_p".
Did you mean:
cross
2013 Jan 24
1
how should I make the optional arguments in r?
HI,
I guess I did sth wrong with the optional argument in the program. but I don't know how should I make it.
in my main program:
source("getelasticity_overPB.r")
crossprice<-getelasticity(mydata,mydatao,"nest")$cross_p
is same with
crossprice<-getelasticity(mydata,mydatao)$cross_p
I don't know why????
In ""getelasticity_overPB.r":
I have the function:
getelasticity=function(mydata,mydatao,method=NULL){
.....
source("runmodel.r")
rr<-getrange(dataw,mydatao,method=NULL)
#I have...