Hello Statisticians,
I have a variable x=.
From a cross tab if I want to pick up a frequency from the 3x3 table and replace x with this frequency. How can it be done? I also produced a matrix using tab var1 var2, matcell(M)
mat li M gives
c1 c2 c3
r1 45598 116 8
r2 22797 55 1
r3 22801 55 8
Now I want to replace x with 116. How do I do it?
I have a variable x=.
From a cross tab if I want to pick up a frequency from the 3x3 table and replace x with this frequency. How can it be done? I also produced a matrix using tab var1 var2, matcell(M)
mat li M gives
c1 c2 c3
r1 45598 116 8
r2 22797 55 1
r3 22801 55 8
Now I want to replace x with 116. How do I do it?

Comment