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

st: RE: Bootstrap table cells

From   "Nick Cox" <>
To   <>
Subject   st: RE: Bootstrap table cells
Date   Thu, 24 Feb 2005 17:59:59 -0000

I don't think you can bootstrap with whole matrices. 
Or at least you can't -bootstrap- with whole matrices. 

That is a Stata problem, even if it may be 
complaining about something different. 

But I guess there is a conceptual problem in any 
case, unless you can point to a literature in which this makes
sense as a species of bootstrapping problem. 

> I want to bootstrap the frequencies in contingency table. 
> Please see simple
> program below. 
> sysuse auto, clear
> program tableboot, rclass
> tabulate `1' `2', matcell(answ)
> return matrix cellans answ
> end
> bootstrap "tableboot rep78 foreign" r(cellans)
> When run the bootstrap fails with error message " type 
> mismatch error in
> statistic: r(cellans)".

*   For searches and help try:

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