Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • n-way Tables (several row variables and one column variable.

    Hi Statalovers,


    I want to create a single table which has six variables in the rows and only one variable in the column. I want to display both frequency and percentage (side by side). Thereafter, I want to export the results to a word file.

    Below is an example of my dataset.



    input float(knowledge1 knowledge2 knowledge3 knowledge4 knowledge5 knowledge6 educationm)
    0 1 1 1 0 1 1
    0 1 1 1 1 0 1
    0 0 0 0 0 1 1
    1 1 0 0 0 0 5
    1 1 1 1 1 0 3
    0 1 0 0 0 1 1


    I am using the following command but it not doing what I want.


    table (knowledge*) (educationm result), statistic(frequency) statistic(percent, across(education))



Working...
X