[R] Invert Likert-Scale Values

(Ted Harding) ted.harding at nessie.mcc.ac.uk
Sat Aug 4 19:06:58 CEST 2007


On 04-Aug-07 16:42:23, John Kane wrote:
> Will ?recode in the car package do what you want?
>  x <- 1:4
>  recode(x, "1='4';2='3' ;3='2'; 4='1'")

Is thre a problem with just using

  New <- (8 - Old)

??

Ted.

> --- Alexis Delevett <adelevet at yahoo.com> wrote:
> 
>> Hi!
>> 
>> I am using R to process some community survey data.
>> Several item responses are recorded via a 7-point
>> Likert-Scale. As I have coded the responses, 1
>> represents high agreement, and 7 high disagreement.
>> This of course impacts the coefficients in a linear
>> regression (of example agreement to self-perception
>> measures on housing satisfaction). For some
>> purposes, in order to make the coefficients more
>> accessible to the reader, I would like to invert the
>> item values, i.e. to arrive at 1 for high
>> disagreement, and 7 for high agreement (such that
>> the linear regression would express something like
>> "the higher the agreement on A, the greater the B).
>> 
>> Is there an already existing function for this, or
>> do I use a custom replace loop in R?
>> 
>> Thank you, Alexis
>> 
>>        
>> ---------------------------------
>> 
>>      [[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained,
>> reproducible code.
>>
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 04-Aug-07                                       Time: 18:06:38
------------------------------ XFMail ------------------------------



More information about the R-help mailing list