LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot multiple linear regression

Hi, does anybody has any idea of how to plot a multiple linear regression ? Assisted by labview help I have made a simple vi (which I attach) which gives the multiple linear regression coefficients I'm looking for.But I have no idea of how to plot the "y" values against "x1" and "x2" values and  the fitted curve like the Regression Solver example of labview does with a simple linear regression.
Thanks
Regards.
0 Kudos
Message 1 of 5
(4,861 Views)
Sorry I forgot to attach my Vi, here it goes
 
0 Kudos
Message 2 of 5
(4,859 Views)
Look at the help file for the General LS Linear Fit.vi. It shows an example of how to plot the original data and the fitted result.

Lynn
0 Kudos
Message 3 of 5
(4,854 Views)

I am not sure but that example seems to be a simple variable regression, instead of a multiple variable regression. The problem is that I have two inputs x1 and x2 and one output y. So I think that I must use a 3D plot in order to plot it, because the representation of the multiple linear regression of two inputs is a plane instead of a line.

Thanks.

Regards.

0 Kudos
Message 4 of 5
(4,848 Views)
You probably want a 3D Surface Graph or 3D Curve Graph.  Both are available in the Graph palette, near the bottom.  Make sure you check out the examples, as they have lots of options and inputs.  The newer your version of LabVIEW, the better off you will be.
0 Kudos
Message 5 of 5
(4,839 Views)