Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Saving frequencies for r X c tables

From   "Nick Cox" <>
To   <>
Subject   st: RE: Saving frequencies for r X c tables
Date   Tue, 8 Oct 2002 15:58:39 +0100

Mike Lacy
> As part of a larger project, I'm trying to write a program 
> to generate a 
> bootstrap distribution for the cell frequencies in an  r X 
> c table. That 
> is, for each bootstrap subsample, I want to save these 
> results in a data 
> file.  I think I'm OK with the specifically bootstrapping 
> aspects of tghis 
> problem, but I'm stumped as to how to get frequencies into 
> a matrix or set 
> of variables that I can post to a bootstrap results file.  
> Can someone 
> offer a suggestion or example here or point me to some 
> documentation?
>   The sort of results  tabulate produces would be fine, but 
> I can't see any 
> save option or return list that is relevant. I've scoured 
> the other table 
> commands, with no luck, so I must be missing something. As 
> I'm sure is 
> obvious,  I am quite a neophyte in programming Stata, so 
> I'd appreciate 
> suggestions that recognizes my limitations <grin> .

The -matcell()- option of -tabulate- has matrix result. 

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index