Tuesday, September 3, 2019

How to generate percentage values in a 3 way frequency table?

Dear Friends;

I am trying to work out my descriptive tables where I have to obtain a table of corresponding values between 2 variables, further segregated by a third variable. The command
<table Dum_Gender LC4, by(LC3) contents(freq) column> is working fine, but I want the corresponding percentage values also.
Dum_Gender is a dummy for Females=1 and Males=0
LC4 is a categorical variable with 3 values of Never, Sometimes, Often
LC3 is also a categorical variable with 2 values of Faced Violence and Not faced violence
Image attached for reference
Array


Kindly advice.
Regards

No comments:

Post a Comment