Displaying 1 result from an estimated 1 matches for "b_rnorm".
Did you mean:
c_rnorm
2002 Aug 05
1
constructing a formula
Dear Listers,
I am having trouble figuring out how to build a formula using a variable
list. For example, I have:
a _ data.frame(a=rnorm(1000))
a$b_rnorm(1000)+.5*a$a
a$c_rnorm(1000)+.5*a$b
a$d_rnorm(1000)+.5*a$b+.1*a$a
attach(a)
and I estimate,
lm(d ~ b+c+d)
BUT,
I wish to construct a generalized solution in which,
ListOfVar _ c('b','c','d')
The question is how to leverage ListOfVar into the constuction of the
formula...