s-news
[Top] [All Lists]

Bootstrap, Mode, Modal value

To: s-news@lists.biostat.wustl.edu
Subject: Bootstrap, Mode, Modal value
From: Weigl Klemens <weiglk@stud.uni-graz.at>
Date: Mon, 10 Sep 2007 22:15:37 +0200
User-agent: Internet Messaging Program (IMP) 3.2.2
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

<Prev in Thread] Current Thread [Next in Thread>
  • Bootstrap, Mode, Modal value, Weigl Klemens <=