[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Bootstrap table cells
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
> 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: