asdocx with pstest


pstest calculates and optionally graphs measures of the extent of balancing of variables in the specified varlist between two groups. pstest is a valuable addition to asdocx in response to numerous requests on Statalist and from asdocx users. The integration of pstest into asdocx is aimed at offering users with an efficient tool for exporting their pstest tables to Excel, Word, LaTeX, or HTML formats.

asdocx currently supports only the basic table for pstest.

The syntax for pstest is simple:

asdocx pstest, replace title(Table title)

Before running this code, it is necessary to execute the psmatch2 command.

asdocx default summary statistics Example

 * Get example dataset
webuse cattaneo2, clear
‏‏‎ ‎
* Run psmatch2
qui psmatch2 mbsmoke foreign alcohol mage medu fage fedu, ///
out(bweight) logit n(5) ai(5) ate common
‏‏‎ ‎
* Export the pstest results with asdocx

asdocx pstest, replace title(Table title)

Export pstest results to Word Excel from Stata-png

  See also


  • tabmany – Table of multiple coded answers
  • mrtab – One- and two-way tables of multiple responses
  • fre – One-way frequency tables
  • tabcount – tabulates frequencies for up to 7 variables
  • tab3way – Three way table of frequencies and percentages
  • missings – Various utilities for managing missing values
  • tabulate, tab1, tab2
  • pctab – Percentage over a grouping variable
  • crosstab – table of means and weighted by in cross tabulations

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