Katja H�lsch writes:
> I want to bootstrap e.g. the gini coefficient with inequal7 in Stata8. In
version 7 I used
> the command line
>
> bs "inequal7 i11101" "S_4", reps(10)
>
> and it worked.
>
> Now the command line seems to have change for Stata8 as it should be
>
> bs "command" exp_list [, reps(#)]
>
> What I have tried is
>
> bs "inequal7 i11101" S_4, reps(10)
>
> Then Stata responds:
> S_4 not found
> error in statistic: S_4
>
> I also tried
>
> bs "inequal7 i11101" r(gini), reps(10)
>
> and Stata responds:
> type mismatch
> error in statistic: r(gini)
>
> Of course I could use
>
> version 7
> bs "inequal7 i11101" "S_4", reps(10)
>
> but isn't there a way to do it in Stata8?
Katja --
This will work in Stata8 if you put a $ before S_4
. bs "inequal7 i11101" $S_4, reps(10)
The problem with
. bs "inequal7 i11101" r(gini), reps(10)
is that the author of -inequal7- returned the values as locals, rather than
scalars, and they appear as string values rather than numeric values when
evaluated via -r()-, thus the type mismatch.
-- Tom
*
* 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/