Export kwallis table from Stata to Excel, Word


kwallis performs a Kruskal-Wallis test of the hypothesis that several samples are from the same population. This test is a multi-sample generalization of the two-sample Wilcoxon (Mann-Whitney) rank-sum test. To export its output with asdocx, see the following example.

asdocx kwallis syntax

The syntax is just like any other use case of asdocx with Stata command. Add asdocx to the beginning of the Stata command, and your table is ready.

 * Load some example data
 sysuse nlsw88
 
 * Run the test and send its output to MS Word
 asdocx kwallis wage, by(occupation )
Table : Results of Kruskal-Wallis test
occupation Obs Rank Sum
Professional/technical 317 499123
Managers/admin 264 389792.5
Sales 726 780880
Clerical/unskilled 102 103105
Craftsmen 53 58279
Operatives 246 202712.5
Transport 28 7954.5
Laborers 286 176817.5
Farmers 1 1475
Farm laborers 9 1987.5
Service 16 15356.5
Household workers 2 2263.5
Other 187 263456.5
Chi2 test (df: 12) 571.042
Probability 0.000
Chi2 test with ties (df: 12) 571.059
Probability 0.000
Notes:

 

Order asdocx


Yearly license of asdocx is available at $9.99. Its life-time license is available at $49.99. With the asdocx membership, you get :

  • Life-time license to use
  • All future updates
  • All premium templates / plugins.

 

Order asdocx