Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Creating a frequency distribution from matrix

From   "Coffey,Daniel J" <>
To   "" <>
Subject   st: Creating a frequency distribution from matrix
Date   Wed, 9 Nov 2011 12:39:50 -0500


I am working on a dataset of internet user comments to online newspaper articles. In one database,  I have arranged the dataset such that each row represents a specific newspaper article and the columns represent coding of individual user comments. Each comment is coded on a 1-5 scale, so the cells all represent observations on the same coding scale. There are 200 cases (newspaper articles) but a varying number of comments per article (some stories less than 5 comments, while others have 500 or more comments). 

The question I have is simple but something I will need for future analysis of the dataset. That is, is there a way to quickly create a frequency distribution for the whole dataset? The columns aren't really variables, but just a way to track comments efficiently. So, I want STATA to treat all of the cells as one single variable without having to manually copy each row into a single column. 

Any advice would be greatly appreciated. 

Daniel J. Coffey, Ph.D.
Associate Professor
Department of Political Science
Fellow, Bliss Institute of Applied Politics
University of Akron

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index