Re: [R] need help

From: Weiwei Shi <helprhelp_at_gmail.com>
Date: Sat 13 Aug 2005 - 07:33:40 EST

Hi, there:
here is some part from my previous email:

          [,1] [,2] [,3] [,4] [,5]

[1,] 34.216166 96.928587 330.125990 330.183222 330.201215
[2,]  2.819183  8.134491   8.275841   8.525256   8.828448
[3,]  2.819183  7.541680   7.550333   8.374636   8.690998
[4,]  4.672551  5.036353   5.072710   5.152218   5.223204
[5,]  5.470131  5.500513   5.674139   5.689151   5.770423
[6,]  4.480287  4.628300   4.797686   4.814106   4.823345

I want to filter out the first 3 cases from the rest and the criteria is I am looking for a "gap".

My way is using std(eachrow)/median(each) and set up a threshold, which is very naive, but fast and good enough. But I want it better and more "academic". Please be advised. I think clustering might help, but it needs to be quick since t2 has 30000 rows.

Thanks,

On 8/12/05, Daniel Nordlund <res90sx5@verizon.net> wrote:
> > -----Original Message-----
> > From: r-help-bounces@stat.math.ethz.ch [mailto:r-help-bounces@stat.math.ethz.ch]
> > On Behalf Of Weiwei Shi
> > Sent: Friday, August 12, 2005 2:05 PM
> > To: r-help
> > Subject: [R] need help
> >
> > Hi, there:
> > I think i need to re-phrase my question since last time I did not get
> > any reply but i think the question is not that hard, probably i did
> > not make the question clear:
> >
> > I want to find cases like
> > 35, 90, 330, 330, 335
> >
> > from the rest which look like
> > 3, 3, 3, 3.2, 3.3
> > 4, 4.4, 4.5, 4.6, 4.7
> > ....
> >
> > basically there is one (or more) big 'gap' in the case i seek.
> >
> > thanks,
> >
> > weiwei
> >
> > --
> > Weiwei Shi, Ph.D
>
> Weiwei,
>
> You will have to specify what you mean by a big gap before anyone can help. And I still don't understand what your data look like. Is
>
> 35, 90, 330, 330, 335
>
> supposed to represent a sequence or a row of a matrix (or data frame)?
>
> Dan Nordlund
> Bothell, WA
>
>
>

-- 
Weiwei Shi, Ph.D

"Did you always know?"
"No, I did not. But I believed..."
---Matrix III

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Aug 13 07:40:03 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:18:05 EST