In the dialog box that appears after choosing Linear Model, you will be entering temp
, wind
, and rad
. Now you need to highlight all three and then select the [Three-way] button. (It will appear in the Model column as (temp+wind+rad)^3
which is equivalent to temp*wind*rad in R's formula syntax.) That will construct the first term. Now you need to highlight each variable in turn and for each one select [poly] and enter "2" to construct the second-order polynomial terms.
That may or may not give you exactly what you want, since poly constructed an orthogonal polynomial. Why not skip the rigomarole of the GUI and just enter this at the command line?:
lm(ozone~temp*wind*rad+I(rad^2)+I(temp^2)+I(wind^2), data=environmental)
I'm not sure what your real dataframe name might be but it has the same variables as the environmental
dataframe that is part of the lattice package, so that is what I guessed.