I'm sure this is a very simply question for most of you.
I have two variables, Q43 and Q44.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte Q43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . end label values Q43 Q43
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte Q44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . end label values Q44 Q44
Code:
codebook Q43
----------------------------------------------------------------------------------------------------------------
Q43 In your opinion, what is the IDEAL situation for a young child in a two-parent h
----------------------------------------------------------------------------------------------------------------
type: numeric (byte)
label: Q43
range: [1,99] units: 1
unique values: 4 missing .: 5,934/7,963
tabulation: Freq. Numeric Label
341 1 Both parents working full time
718 2 One parent working full time and
one parent working part time
948 3 One parent working full time and
one parent not working outside
the home
22 99 Refused
5,934 .Code:
codebook Q44
----------------------------------------------------------------------------------------------------------------
Q44 Which parent do you think should [work part time /not work outside the home] in
----------------------------------------------------------------------------------------------------------------
type: numeric (byte)
label: Q44
range: [1,99] units: 1
unique values: 4 missing .: 6,297/7,963
tabulation: Freq. Numeric Label
86 1 The father
637 2 The mother
937 3 It doesn't matter which parent
{#Q44_Insert2}
6 99 Refused
6,297 .For some reason, none of the commands I know with which I would like to do this are working, specifically tab, list, or count:
Code:
. tab Q43==1 if Q44==. == invalid name r(198); . list Q43==1 if Q44==. == invalid name r(198); . count Q43==1 if Q44==. varlist not allowed r(101);
Grateful for any help in overcoming this roadblock.
0 Response to Crosstab of two variables, specifying a single value for each variable
Post a Comment