Ordered dependent variable creation

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Joanne
Posts: 5
Joined: Tue Jun 22, 2010 11:45 am

Ordered dependent variable creation

Postby Joanne » Tue Jun 22, 2010 12:03 pm

Hi all
I am running an ordered probit model with panel data and my dependent variable is the credit ratings of banks. I know that they need to be in integer form, eg 1, 2, 3 which would correspond with C, C/B and B for example but I am not sure how to create that series. Can anyone help? Thanks

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Ordered dependent variable creation

Postby EViews Gareth » Tue Jun 22, 2010 12:12 pm

Obviously hard to say without knowing what form your data is in, but something like:

Code: Select all

smpl if rating="C" series ordered = 1 smpl if rating = "C/B" ordered = 2 smpl if rating = "B" ordered = 3
Will do what you want.

You might also be able to use a value map.

Joanne
Posts: 5
Joined: Tue Jun 22, 2010 11:45 am

Re: Ordered dependent variable creation

Postby Joanne » Wed Jun 23, 2010 4:03 am

Thanks so much, it worked!

bg2010
Posts: 1
Joined: Mon Dec 13, 2010 5:27 am

Re: Ordered dependent variable creation

Postby bg2010 » Mon Dec 13, 2010 5:34 am

Dear Joanne, I hav just seen your post, since you are trying to do the same thing as I want. How is it actually possible to do a panel estimation AND an ordered dependent variable regression at the same time. In the estimation dialog I have to decide between either one of them. Hence, if I do the orderered dep. variable thing, I can't choose fixed effects anymore (which I want!)
Thanks, best!
Nils


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests