Multiple choice technology programming languages

I want to create a 2 way cross tabulation frequency based on Country and Sales using FREQ procedure. From the given options pick the correct code?

  1. Proc freq; Tables country sales; Run;

  2. Proc freq; Table country sales; Run;

  3. Proc freq; Tables country * sales; Run;

  4. Proc freq; Table country * sales; Run;

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To create a two-way cross-tabulation (crosstab) in PROC FREQ, use the TABLES statement with an asterisk between the two variables. The syntax 'TABLES country * sales' produces a crosstab with country as rows and sales as columns (showing the frequency of each combination). Option C uses correct syntax (TABLES with asterisk).