Hi all!
R newbie question here. I have a list called dbdata. Normally I use it like this:
myresults <- rlm(V001 ~ V002+V003, data=dbdata)
However, I would like to make these references dynamic. I need to have something like this:
var1 <- "V001"
var2 <- "V002"
var3 <- "V003"
myresults <- rlm(var1 ~ var2+var3, data=dbdata)
How would I reference the variables in the context of rlm()? I thought perhaps something like eval(), but that didn't work.
Thanks!