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

st: Bootstrap table cells

Subject   st: Bootstrap table cells
Date   Thu, 24 Feb 2005 17:36:51 -0000


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

bootstrap "tableboot rep78 foreign" r(cellans)

When run the bootstrap fails with error message " type mismatch error in
statistic: r(cellans)".

Any help much appreciated.


DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.
*   For searches and help try:

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