Hello,
My apologies if I incorrectly formatted anything in this support request or if I missed a technical document that covers this topic, this is the first time I have worked with SAS so I am not very experienced and I may have not searched the correct terms to figure out my issue. Anyway, I am working on my dissertation looking at opinions on smoking in vehicles using secondary data and there are two questions with the following question path with counts in red:
Q1: Inside a car when other people are present, do you think that smoking should: (n=132811)
(1) Always be allowed (n=4770)
(2) Be allowed under some conditions (n=25805)
(3) Never be allowed (n=102236)
If they answer (3), they are skip logic'd past the next question. If they answer (1) or (2), they are given the follow up question:
Q2: If children are present inside the car, do you think smoking should: (n=31023)
(1) Always be allowed (n=1189)
(2) Be allowed under some conditions (n=4592)
(3) Never be allowed (n=25242)
We decided that for analysis of Q2, we should carry Q1's answer (3) "never be allowed" to be included with Q2's answer (3) "never be allowed" since if they were never allowed in the first scenario, they are technically also never allowed in the second. However, when I do this, the new count looks like this for Q2 with differences in green:
NEWQ2: If children are present inside the car, do you think smoking should: (n=133259)
(1) Always be allowed (n=1189)
(2) Be allowed under some conditions (n=4592)
(3) Never be allowed (n=127478)
I do not know where to start to figure out where the additional counts are coming from once I add in the new condition. The code I'm using for this should be pretty simple where PEK6h is Q1 and PEK6h2 is Q2 and those other two variables are for my recodes.
If PEK6h=1 Then ATSMCARO=1; /* Always allowed */
Else If PEK6h=2 Then ATSMCARO=2; /* Be allowed under some conditions */
Else If PEK6h=3 Then ATSMCARO=3; /* Never be allowed */
If PEK6h2=1 Then ATSMCARC=1; /* Always allowed */
Else If PEK6h2=2 Then ATSMCARC=2; /* Be allowed under some conditions */
Else If PEK6h2=3 or PEK6h=3 Then ATSMCARC=3; /* Never be allowed */
How would you all recommend I go about figuring out where those new green values are coming from since there are now technically 448 more counts now in Q2 than Q1 despite Q2 being given to only those who answered Q1 and didn't answer (3) on Q1 as well so presumably there should be less or equal in Q2, not more even when adding in those "nevers" from Q1? Thank you and my apologies if this is not the correct channel for this question.
Thanks!