I have variables of the following kind (coded in R):
set.seed(2)
dependent.variable = rnorm(12)
exp1 = c(1,3,4,8,3,4,1,5,6,6,7,9)
exp2 = c(1,3,6,2,1,1,3,4,6,4,1,1)
exp3 = exp1*exp2
my three explanatory variables are related by an equation of the kind: $exp1 = \frac{exp3}{exp2}$. For my real variables the relation might be slightly more complex and I haven't figured out the equation yet.
I want to know if any of these three variables influence dependent.variable
. Does it make sense?
Can I simply run:
lm(dependent.variable~exp1*exp2*exp3)
or
lm(dependent.variable~poly(exp1,2,raw=T)*poly(exp2,2,raw=T)*poly(exp3,2,raw=T))
without having to care about the fact that the explanatory variables are not independent? If not, what should I do?
Thanks a lot!