Manage New Post Logout Login

Technical Notes

Documentation of fixes for programming/computing annoyances.

Tag jupyter

« Back to blog

2x2 tables in Jupyter/IPython notebooks

I've written some helper methods for quickly generating 2x2 tables (or contingency tables, cross tabulations, crosstabs) in Jupyter/IPython notebooks. This achieves the same thing, more or less, as Stata's tabulate twoway command.

The notebook below has the helper methods and examples of their output. I've added these to my ipython-setup file because I use them so frequently.

Tags
  • ipython
  • jupyter
Upvote Upvoted 0
Tweet
Posted

by Max Masnick

www.maxmasnick.com

Follow @_technotes on Twitter

Terms of use.
Browse the Archive »
Subscribe by email
You're following this blog. Unfollow
Follow this Posthaven
Enter your email address to get email alerts about new posts on this site. Unsubscribe anytime.
Email address is invalid.

Tags

  • ipython 7
  • mailmate 7
  • applescript 7
  • python 5
  • textexpander 4
  • OS X 4
  • Finder 3
  • stata 3
  • sas 2
  • JXA 2
  • See all 30 tags »