Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Inverting Code for Table

From   daniel klein <>
Subject   Re: st: Inverting Code for Table
Date   Tue, 22 May 2012 18:03:26 +0200

You can use -rev- (from SSC) to reverse the coding of your variable.
The program also takes care of the value labels. In Stata type

. ssc inst rev


Hello all,

I have a variable that corresponds to final grades in a course. It is a 13
point scale where 1 corresponds to A, 2 corresponds to A- all the way down
to 13 = F-. I would like to manipulate this variable such that the higher
grades are associated with higher numbers (A = 13 and F = 1).

Which command should I employ to achieve this?

Thank you very much.
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index