

Hi, I need help with linear regression with three variables.
I was running the following code: N_Liner=1; P_Liner=polyfit(G,Temp,I_PV,N_Liner)
getting the following error "error: polyfit: N must be a nonnegative integer".
Is there any way out?
Regards, Swagata


On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee < [hidden email]> wrote: Hi, I need help with linear regression with three variables.
I was running the following code: N_Liner=1; P_Liner=polyfit(G,Temp,I_PV,N_Liner)
getting the following error "error: polyfit: N must be a nonnegative integer".
Is there any way out?
Regards, Swagata
Show us what these values are. G Temp I_PV N_Liner
 DAS


Hi, The files are attached.
Regards, Swagata
On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee < [hidden email]> wrote: Hi, I need help with linear regression with three variables.
I was running the following code: N_Liner=1; P_Liner=polyfit(G,Temp,I_PV,N_Liner)
getting the following error "error: polyfit: N must be a nonnegative integer".
Is there any way out?
Regards, Swagata
Show us what these values are. G Temp I_PV N_Liner
 DAS


On Sun, Dec 20, 2020 at 8:16 AM swagata Mukherjee < [hidden email]> wrote: Hi, The files are attached.
Regards, Swagata
On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee < [hidden email]> wrote: Hi, I need help with linear regression with three variables.
I was running the following code: N_Liner=1; P_Liner=polyfit(G,Temp,I_PV,N_Liner)
getting the following error "error: polyfit: N must be a nonnegative integer".
Is there any way out?
Regards, Swagata
Show us what these values are. G Temp I_PV N_Liner
 DAS
If you look at the help for polyfit: help polyfit
You will see that your inputs to polyfit are wrong. you should give it the x and y values and the deg. of polynomial that you want.
 DAS


Hi, My question is whether we have any method by which I can use regression with 3 variables like polyfit(x,y,z,N)? Regards
On Sun, Dec 20, 2020 at 8:16 AM swagata Mukherjee < [hidden email]> wrote: Hi, The files are attached.
Regards, Swagata
On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee < [hidden email]> wrote: Hi, I need help with linear regression with three variables.
I was running the following code: N_Liner=1; P_Liner=polyfit(G,Temp,I_PV,N_Liner)
getting the following error "error: polyfit: N must be a nonnegative integer".
Is there any way out?
Regards, Swagata
Show us what these values are. G Temp I_PV N_Liner
 DAS
If you look at the help for polyfit: help polyfit
You will see that your inputs to polyfit are wrong. you should give it the x and y values and the deg. of polynomial that you want.
 DAS


Am 20. Dezember 2020 um 15:57 Uhr schrieb "swagata Mukherjee":
> Hi,
> My question is whether we have any method by which I can use regression with 3 variables like polyfit(x,y,z,N)?
> Regards
This answer on the discourse forum might be helpful:
https://octave.discourse.group/t/execucaodocodigo/497/8In principle, that approach also works for multidimensional polynomials of higher degree.
HTH,
Markus

