Hello,
I want to be able to create a table with 4 dummy variables coded 1/0 which displays % N with 1 all in columns side by side for respective variables. Some code displaying how some of these variables are coded is as follows:
tab1 recdint_sp_atleast1 recint_sp_all
-> tabulation of recdint_sp_atleast1
recdint_sp_ |
atleast1 | Freq. Percent Cum.
------------+-----------------------------------
0 | 101 0.05 0.05
1 | 190,797 99.95 100.00
------------+-----------------------------------
Total | 190,898 100.00
-> tabulation of recint_sp_all
recint_sp_a |
ll | Freq. Percent Cum.
------------+-----------------------------------
0 | 190,875 99.99 99.99
1 | 23 0.01 100.00
------------+-----------------------------------
Total | 190,898 100.00
In a similar fashion, I want to make a table of several other variables which are dummy variables with values 0/1 with %of N with 1 using a loop for each.
I want to be able to create a table with 4 dummy variables coded 1/0 which displays % N with 1 all in columns side by side for respective variables. Some code displaying how some of these variables are coded is as follows:
tab1 recdint_sp_atleast1 recint_sp_all
-> tabulation of recdint_sp_atleast1
recdint_sp_ |
atleast1 | Freq. Percent Cum.
------------+-----------------------------------
0 | 101 0.05 0.05
1 | 190,797 99.95 100.00
------------+-----------------------------------
Total | 190,898 100.00
-> tabulation of recint_sp_all
recint_sp_a |
ll | Freq. Percent Cum.
------------+-----------------------------------
0 | 190,875 99.99 99.99
1 | 23 0.01 100.00
------------+-----------------------------------
Total | 190,898 100.00
In a similar fashion, I want to make a table of several other variables which are dummy variables with values 0/1 with %of N with 1 using a loop for each.