# Plotting multiple regression with data points

datas = Transpose[{advert, advertsquared, price, sales}]
{{1.3, 1.69, 5.69, 73.2}, {2.9, 8.41, 6.49, 71.8},
{0.8, 0.64, 5.63, 62.4},{0.7, 0.49, 6.22, 67.4},
{1.5, 2.25, 5.02, 89.3}, {1.3, 1.69,6.41, 70.3}, ...............}


As you can see this is just a sample.

Fitted model: 109.719 + 12.1512 adv - 2.76796 advsq - 7.64 prise

Everything works out so far, but now I want to plot the function, as well as the data points. I have seen that there are some examples already on the StackExchange network, however they are based on a simple regression, not multi. And the answers were so simple that I were not able to build on it to create what I wanted. Any ideas how to do this ?

-
Hello ! Please, refer to the help centre in order to format your code properly. –  Sektor Aug 20 at 11:43
For someone who just started programming I have to say I did not understand very much about what was being suggested in the help centre. I have been doing econometrics for a couple of years now, but I spent this entire day trying to work out how to do a regression in mathematica, everything goes so slow when your programming for the first time. Could you give me some simple tips to improve my question? Thank you so much for the help! Regards Aleksander –  ALEXANDER Aug 20 at 12:21
Oh, I was just suggesting how to format your code properly, here, on StackExchange. Frankly, I used Mathematica built-in functionality only once to perform a regression. I am using SigmaPlot to perform regressions as there are pre-defined options such as: Linear regression w/wo error bars w/wo data points w/wo. –  Sektor Aug 20 at 12:28
@ALEXANDER Well, if you post a working (simplified) snippet of code demonstrating your problem, people here are more likely to help you. –  Ajasja Aug 20 at 13:49