Hi Dear All,
I have the following test data :
data test;
input id type $ String $;
datalines;
1 property level1
2 property level2
3 property level3
4 property level1
5 property level2
6 car level3
7 car level1
8 car level4
9 car level3
;
run;
data test2;
input id type $ String $;
datalines;
1 property level3
2 property level3
3 property level5
4 property level5
5 property level1
6 car level1
7 car level6
8 car level8
9 car level8
;
run;
How to perform the chi-square test on test and test2 by id, considering the 'graduality' of the level, to know if the level increased or decreased? and based on the type ( property or car) ...? there are maximum level8 ( from level1-level8)
more precisely :
- if the level increased in test2
- if the level decreased in test2
- if the level remained the same
I know the data shown here is not enough, but it's to simplify...
Thank you for response.