Like the title suggests, I'm trying to add rows for observations whose value is 0 in proc sql.
When I do a frequency check, I get this:
I do a proc sql to group by my respective categories using this code which fails to account for 0 observations for some combinations show in the proc freq:
proc sql;
create table count7 as
select distinct status as d_cat, program, count(status) as count_16, 'm_cit' as m_type
from cy16
group by status, program;
quit;
which produces: Have
I want to create rows from the Proc Freq that produces rows for those categories that have 0 observations. Can this be achieved in a proc sql or would I need an additional data step too?