Dear S-News Members!
If I´d like to bootstrap the mode of a column of a dataset as statistic of
interest. ("Mode" in the sense of the most occuring value out of 30 values, for
example). How can I do this?
This code works fine on its own:
> dist.mode <- names(table(x))[table(x)==max(table(x))]
But I´d like to bootstrap the "mode", if this is possible with S-Plus.
If I try something like this, than it doesn´t work:
> bootstrap(data.File, dist.mode <- names(table(x))[table(x)==max(table(x))],
+ B=1000, args.stat=NULL, group=NULL, sampler=samp.boot.mc, seed=.Random.seed,
+ assign.frame1=F, save.indices=F)
Additional information:
I´m working with "Resample-library" on Windows XP and S-Plus Version 7.0.
I´d be very happy, if anyone could help me.
Yours sincerly,
Weigl Klemens
----------------------------------------------------
Sent through IMP on https://webmail.stud.uni-graz.at
|