Re: Polyfit with three variable
swagata Mukherjee <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CAM7LAkRcP9XwNHVCKwU8J7VEfP8vX50Y-aCZ-tEujmGBj3qPvQ@mail.gmail.com> |
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 20 Dec, 2020, 8:24 PM Doug Stewart, <[email protected]> wrote: > > > On Sun, Dec 20, 2020 at 8:16 AM swagata Mukherjee <[email protected]> > wrote: > >> Hi, >> The files are attached. >> >> Regards, >> Swagata >> >> On Sun, Dec 20, 2020 at 5:57 PM Doug Stewart <[email protected]> >> wrote: >> >>> >>> >>> On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee < >>> [email protected]> 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 non-negative >>>> integer". >>>> >>>> Is there any way out? >>>> >>>> Regards, >>>> Swagata >>>> >>>> Show us what these values are. >>> G >>> Temp >>> I_PV >>> N_Liner >>> >>> -- >>> DAS[image: Certificate for 206392] >>> >>> <https://linuxcounter.net/user/206392.html> >>> >> 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[image: Certificate for 206392] > > <https://linuxcounter.net/user/206392.html> >