Prev: Why are my axes not the same size when I plot my graph?
Next: how to write my own "autocorr" without the toolbox?
From: Ankit Kumar on 29 Jul 2010 07:37 Hi I am trying to apply logit model to get coef: I have in following format y = [ 1 0 0 1 0 1] x (x1 c2 x3) = [ 2 3 4 3 4 5 4 5 6 5 6 7 6 7 8 7 8 9] y= a1*x 1 + a2*x2 + a3*x3 I would like to get a1, a2, a3 I think mnrfit, glmfit should be helpful but I could not get this done, could you guide pls. Thanks A
From: Peter Perkins on 29 Jul 2010 08:50 On 7/29/2010 7:37 AM, Ankit Kumar wrote: > y= a1*x 1 + a2*x2 + a3*x3 Withiout an intercept term? > I would like to get a1, a2, a3 I think mnrfit, glmfit should be helpful > but I could not get this done, could you guide pls. What have you done so far?
From: Ankit Kumar on 30 Jul 2010 01:04 Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message <i2rte2$h9d$1(a)fred.mathworks.com>... > On 7/29/2010 7:37 AM, Ankit Kumar wrote: > > y= a1*x 1 + a2*x2 + a3*x3 > > Withiout an intercept term? > > > I would like to get a1, a2, a3 I think mnrfit, glmfit should be helpful > > but I could not get this done, could you guide pls. > > What have you done so far? Hi Peter Thanks for your response. Withiout an intercept term? Yeah, we can have intercept term. What have you done so far? In terms of modelling, it is simple for me as I will feed in data from excel and get the result in excel to use it further, therefore from MATLABB perspective it is just about feeding in data into the function and use the direct result (from 0 to 1 showing probablity and error items). Pls tell me if it is enough or you need me to furnish more information. Thanks A
From: Peter Perkins on 30 Jul 2010 08:25 On 7/30/2010 1:04 AM, Ankit Kumar wrote: > What have you done so far? > In terms of modelling, it is simple for me as I will feed in data from > excel and get the result in excel to use it further, therefore from > MATLABB perspective it is just about feeding in data into the function > and use the direct result (from 0 to 1 showing probablity and error items). What problems are you having with using GLMFIT?
From: Ankit Kumar on 2 Aug 2010 03:32
Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message <i2ugcf$7nl$1(a)fred.mathworks.com>... > On 7/30/2010 1:04 AM, Ankit Kumar wrote: > > What have you done so far? > > In terms of modelling, it is simple for me as I will feed in data from > > excel and get the result in excel to use it further, therefore from > > MATLABB perspective it is just about feeding in data into the function > > and use the direct result (from 0 to 1 showing probablity and error items). > > What problems are you having with using GLMFIT? Hi Peter Would like to know how to use the GLMFIT function for the data arranged in the fashion y = [ 1 0 0 1 0 1] x (x1 c2 x3) = [ 2 3 4 3 4 5 4 5 6 5 6 7 6 7 8 7 8 9] and need to find y=a0+ a1*x 1 + a2*x2 + a3*x3 because data given in the sample "x = [2100 2300 2500 2700 2900 3100 ... 3300 3500 3700 3900 4100 4300]'; n = [48 42 31 34 31 21 23 23 21 16 17 21]'; y = [1 2 0 3 8 8 14 17 19 15 17 21]'; b = glmfit(x,[y n],'binomial','link','probit');" appear/arranged differently. Thanks Ankit |