Info

This question is closed. Reopen it to edit or answer.

Plot multivatiate regression model

1 view (last 30 days)
Sarah Yun
Sarah Yun on 31 Dec 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello,
I have a simple multivariate linear regression model
3 variables
y variable is profit
2 x-variables, sales and refunds
% Group x variables
G = [sales, profit]
model = fitlm(G, profit);
plot(G, profit)
% The plot is not working.
Any ideas? Thank you.
  1 Comment
Image Analyst
Image Analyst on 31 Dec 2019
Edited: Image Analyst on 31 Dec 2019
Can you attach your data for y, sales, and refunds in a .mat file. Make it easy for people to help you, not hard. Thanks. And what sort of model do you want?

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!