Postproc

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Postproc

Post by MrTaco »

Hi guys

I want your help on this postproc coding

Population Group
1 = Black African
2 = Coloured
3 = Indian or Asian
4 = White
5 = Other (specify)

INTERVIEWER: IN QUESTIONS 105 - 112, ASK ONLY ABOUT RACE GROUPS OTHER THAN THAT TO WHICH THE RESPONDENT BELONGS. FOR EXAMPLE, IF THE RESPONDENT IS A BLACK PERSON, ONLY ASK ABOUT COLOURED, INDIAN AND WHITE PEOPLE. IF THE RESPONDENT IS A COLOURED PERSON, ONLY ASK ABOUT BLACK, INDIAN AND WHITE PEOPLE, AND SO ON.

None Few Some Many Very many (Do not know) (Not applicable – same race group as respondent)
105. … black people … 1 2 3 4 5 8 9
106. … coloured people … 1 2 3 4 5 8 9
107. … Indian people … 1 2 3 4 5 8 9
108. … white people … 1 2 3 4 5 8 9


None Few Some Many Very many (Do not know) (Not applicable – same race group as respondent)
109. … black people … 1 2 3 4 5 8 9
110. … coloured people … 1 2 3 4 5 8 9
111. … Indian people … 1 2 3 4 5 8 9
112. … white people … 1 2 3 4 5 8 9


so this is how i applied my postproc coding

PROC Q_105

postproc
if POPULATION = 1 then skip to Q_106; endif;

PROC Q_106

postproc
if POPULATION = 2 then skip to Q_105; endif;
if POPULATION = 2 then skip to Q_107; endif;

PROC Q_109

postproc
if POPULATION = 1 then skip to Q_110; endif;

PROC Q_110

postproc
if POPULATION = 2 then skip to Q_105; endif;
if POPULATION = 2 then skip to Q_107; endif;

please advice

Regards
Thabiso
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Postproc

Post by Gregory Martin »

This kind of check works better in the preproc. That way, before you ask the question about each race group, you can check against the POPULATION variable. Like this:
PROC Q_105

preproc

    
if POPULATION = 1 then skip to Q_106; endif;

PROC Q_106

preproc

    
if POPULATION = 2 then skip to Q_107; endif;
Post Reply