Displaying 1 result from an estimated 1 matches for "inddependent".
Did you mean:
independent
2012 Jul 10
1
outer() or some other function for regression prediction with 2 IVs
Hi there, I'm trying to prep some data for a persp() surface plot
representing the predictions from a regression with two inddependent
variables. The regression model "m3" has an intercept, 2 linear terms,
and 2 squared terms. The coefficients are given by coef(m3).
My approach to generating the predictions for a range of each of my IVs,
"s" and "d" was to use outer() like so:
predxn <-...