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/