Skip to content
Prev 299614 / 398503 Next

outer() or some other function for regression prediction with 2 IVs

Your problem is the sum() call -- it's not vectorized (in the regular sense) so it breaks some of the internal assumptions of outer(). 

Easiest way is probably to do matrix multiplication (%*%) directly here

Michael
On Jul 9, 2012, at 10:19 PM, Joseph Clark <joeclark77 at hotmail.com> wrote: