Hello all,
Thanks for the help on setx() before.
I think I am having a problem with passing arguments into a function.
I want my function to have a line that says
tt<- teh[,gg.r$treat==1]
for various "treat"s. (this is for generating the ATT -- the columns
of teh where the treatment was applied.) So my function is like
at.func<- function(arg1, arg2, treat, arg4) {
. . .
tt<- teh[,gg.r$treat==1]
. . .
}
When I do this for a particular value of treat outside of the function, ie,
tt<- teh[,gg.r$phone==1]
it works fine, but in passing the argument within the function it
seems to not understand this. (tt is empty). Can anyone help me with
this?
Andy