I want to know if it is possible for a library in R to evaluate the association of independent variables and create a formula? I am trying to come up with a model to predict power consumption of a machine, using some hardware counters and performance attributes. When I use linear regression, I have no problem since I could represent my formula like
power~lm(a1+a2+a3+a4), but for the non-linear case, I am not sure what would be the formula or which model should I choose.
I would want to have a way to do this:
power ~ <some-non-linear-reg-pkg>(a1+a2+a3+non-linear(a4))
I reviewed some packages for non-linear regression such as
gnm, and they expect a formula to be provided by the user. I am however able to identify which variables have linear associations and which are non-linear (by performing correlation tests), the problem is building a formula out of them.