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