Page 1 of 1

Ranking type questions

Posted: August 14th, 2014, 10:15 pm
by ibagur
Dear all,

I am trying to implement a ranking type question from a survey using CSPro, but I have not figured out the best way to do it. The question is similar to this:

Q1. On what have you spent most of the money that you have earned (prioritize the answers)

1._____
2._____
3._____

Options::
1. Savings
2. Education children
3. Improvement house
4. Ceremonies/cultural activities
5. Support of family/neighborhood
6. Purchase large livestock
7. Daily consumption
etc.

I would appreciate any suggestion on how to implement this with CSPro.

Cheers

Re: Ranking type questions

Posted: August 15th, 2014, 11:40 am
by khurshid.arshad
Dear ibagur

I am assuming that your have three variable (Vr1, Vr2, Vr3) for ranking. Maybe you can use this syntax.

Code: Select all

PROC Vr2

if Vr2=Vr1 then

errmsg ("You can not select this value twice.")
Vr2=notappl;
reenter;
else
endif

Code: Select all

PROC Vr3

if Vr3=Vr2  or Vr3=Vr1 then

errmsg ("You can not select this value twice.")
Vr3=notappl;
reenter;
else
endif



a.