how set up regression for interaction?

G

Guest

I know how to do multiple regression in Excel. But when you want regerssion
with interaction between two variable, how do you set up the spreadsheet. Do
you cerate a thrid variable by multiplying the two variables or is there a
function in excel for specifying interaction? Same for setting up quadratic
terms.
 
G

Guest

Polynomials of one variable can be specified via an array formula; for example
=LINEST(y,x^{1,2,3})
would fit a cubic. I do not immediately see a simple way to constuct an
array formula that would take multiple columns and return not only those
columns but products of them as well.

It would be possible to write such a function in VBA.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top