Hello, For instance, in SASHELP.CARS, if I want to see if the Origin and the Type of the cars are independent, I can test for independence between these two variables, using : PROC FREQ data=sashelp.cars;
tables (origin)*type / chisq ;
run; Then, I get a Chi-square test value at 35,66 and a p-value<0.0001 ; so, I can reject the null hypotesis for the globality of the frequency table. But, what happens if I want to do this for each item of Origin; not only to see if there is a broad dependence, but to test the independence for Asia, then Europe, then USA and so on ? Is there a better way that making the following code for each region ? PROC FREQ data=sashelp.cars;
where origin in ('Asia', 'Europe');
tables (origin)*type / chisq ;
run; Is there an option to have the Chi-square test for each item of the PROF FREQ, not only for the whole? Thanks!
... View more