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
Ranking type questions
-
- Posts: 572
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Ranking type questions
Dear ibagur
I am assuming that your have three variable (Vr1, Vr2, Vr3) for ranking. Maybe you can use this syntax.
a.
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.