341 342 /*frequency table for fategorical data*/ 343 options mprint symbolgen; 344 %macro ques(n,o); 345 proc freq data = quad.category1 order = freq; 346 label Q&n = &o; 347 tables Q&n/ missing nocum ; 348 run; 349 350 %mend ques; 351 352 %ques(13,'Compared to before COVID-19, your alcohol intake has') MPRINT(QUES): proc freq data = quad.category1 order = freq; SYMBOLGEN: Macro variable N resolves to 13 SYMBOLGEN: Macro variable O resolves to 'Compared to before COVID-19, your alcohol intake has' MPRINT(QUES): label Q13 = 'Compared to before COVID-19, your alcohol intake has'; SYMBOLGEN: Macro variable N resolves to 13 MPRINT(QUES): tables Q13/ missing nocum ; MPRINT(QUES): run; NOTE: Writing HTML Body file: sashtml.htm NOTE: There were 588 observations read from the data set QUAD.CATEGORY1. NOTE: PROCEDURE FREQ used (Total process time): real time 0.13 seconds cpu time 0.10 seconds 353 %ques(15,'Before COVID-19, how often did you eat out (at a restaurant) ?' 乯 354 %ques(16,'Before COVID-19, how often did you order take-out/delivery?' 乯; SYMBOLGEN: Macro variable N resolves to 18 355 %ques(17,'Before COVID-19, how often did you cook at home?' 乯; SYMBOLGEN: Macro variable O resolves to 'In the past week, how often have you eaten out?' SYMBOLGEN: Macro variable N resolves to 18 356 %ques(18,'In the past week, how often have you eaten out?' ); SYMBOLGEN: Macro variable N resolves to 19 SYMBOLGEN: Macro variable O resolves to 'In the past week, how often have you ordered take-out/delivery' SYMBOLGEN: Macro variable N resolves to 19 357 %ques(19,'In the past week, how often have you ordered take-out/delivery' ); here is the log.Thanks
... View more