Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: vreverse when not all possible values of a variable are used by respondents


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: vreverse when not all possible values of a variable are used by respondents
Date   Thu, 31 May 2007 18:24:17 -0500

At 04:06 PM 5/31/2007, n j cox wrote:
There are at least two ways forward that I can see. One
is that I should add an option to -vreverse- so that the user
can spell out what the range really is. As Christopher points
out, he deals with a ragbag of scales, some 0-4, some 1-5,
etc. and so the putative range would have to be specified for
each variable, like it (Likert?) or not. Equivalently,
somebody could clone my program and add the option,
naming it something else.
A clunky solution would be to add a few fake cases at the end, give them values of 1-5 or 0-4 or whatever, run vreverse, and then drop the fake cases. This could probably be done in a forval loop and/or by creating a wrapper for vreverse.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index