|
From: sujata panday on 18 Jun 2008 16:38 It appears that matlab mnrfit function automatically omits the constant term when ordinal data is chosen. "sujata panday" <sujatagp(a)gmail.com> wrote in message <g38gkd$e7e$1(a)fred.mathworks.com>... > Hi, > > I want to estimate an ordered probit model in matlab. I > have three categories so the dependent variable is not > simply binary. I think the function mnrfit is the right one > for it. But I do not want it to include an intercept term > which it automatically does. The glmfit function allows one > to disable the constant term. Is it possible to do > something like this too for the mnrfit function? > > Or are there other functions within Matlab that i can use > to estimate an ordered probit model. > > Regards > Sujata
From: Ketan on 20 Jun 2008 17:20 I was trying to use mnrfit for my problem but I am getting the following error: ====ERROR==== ??? Error using ===> mnrfit Inputs to mnrfit must be floats, namely single or double. Error in ==> mnrfit at 125 dataClass = superiorfloat(x,y); ====ERROR==== My variable x is double. I tried casting it as single using x=single(x); command, Still I am getting this error. Any help will be much appreciated. Regards, Ketan
|
Pages: 1 Prev: Matlab in Power Systems (electrical engineering) Next: imline (R2007a) wait resume |