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

st: Bootstrap table cells


From   stephen.kay@adelphigroup.com
To   statalist@hsphsun2.harvard.edu
Subject   st: Bootstrap table cells
Date   Thu, 24 Feb 2005 17:36:51 -0000

Hi,

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)".

Any help much appreciated.

Steve


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:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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