UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

Stata Textbook Examples
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence
by Judith D. Singer and John B. Willett
Chapter 9: A Framework for Investigating Event Occurrence

Figure 1.1, page 321.
use http://www.ats.ucla.edu/stat/stata/examples/alda/data/teachers, clear

tabulate t censor

           |        censor
         t |         0          1 |     Total
-----------+----------------------+----------
         1 |       456          0 |       456 
         2 |       384          0 |       384 
         3 |       359          0 |       359 
         4 |       295          0 |       295 
         5 |       218          0 |       218 
         6 |       184          0 |       184 
         7 |       123        280 |       403 
         8 |        79        307 |       386 
         9 |        53        255 |       308 
        10 |        35        265 |       300 
        11 |        16        241 |       257 
        12 |         5        386 |       391 
-----------+----------------------+----------
     Total |      2207       1734 |      3941 
 
sort censor
 
histogram t, by(censor) freq discrete

How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California