Thread Subject: ordered probit model

Subject: ordered probit model

From: sujata panday

Date: 17 Jun, 2008 14:10:21

Message: 1 of 3

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

Subject: ordered probit model

From: sujata panday

Date: 18 Jun, 2008 20:38:02

Message: 2 of 3


It appears that matlab mnrfit function automatically omits
the constant term when ordinal data is chosen.

"sujata panday" <sujatagp@gmail.com> wrote in message
<g38gkd$e7e$1@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

Subject: ordered probit model

From: Ketan

Date: 20 Jun, 2008 21:20:18

Message: 3 of 3

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com