Displaying 1 result from an estimated 1 matches for "indinc".
Did you mean:
indic
2012 Nov 07
4
conditional coding question
I have a big dataset. I want to create a new factor variable with certain
conditions based on two existing numeric variables.
Existing variables: indinc (range: 0 to 16), groupinc (range -3 to 5)
Conditional values that 'incorp' will take:
If groupinc = 5, then ?cons?;
If groupinc is -3 : -2, AND indinc < 9, then ?ethnat?;
If groupinc is -2 : -1, AND indinc > 8, then ?civic?;
If groupinc is 1 : 4, AND indinc > 8, then ?libmul?;
T...