Learn R Programming

lmSupport (version 2.9.13)

varReverse: Reverse score an ordinal or boolean scored item/variable

Description

Reverse scores an item that was ordinal/interval scored or boolean.

Usage

varReverse(Var, LowAnchor, HighAnchor)

Arguments

Var

A variable to reverse score.

LowAnchor

Absolute low value for variable

HighAnchor

Absoluate high value for variable

Value

Returns variable new (reversed) scores

See Also

recode

Examples

Run this code
# NOT RUN {
##d$Item5r = varReverse(d$Item5, 1, 5)
# }

Run the code above in your browser using DataLab