s-news
[Top] [All Lists]

another vector question

To: <s-news@lists.biostat.wustl.edu>
Subject: another vector question
From: "Leeds, Mark" <mleeds@mlp.com>
Date: Fri, 10 Jun 2005 14:22:07 -0400
Cc: <cspark@clemson.edu>
Thread-index: AcVt6U9kkJ/hyfW5TmqhhCCzNOJmog==
Thread-topic: another vector question

I have a vector called longentryindex which

might be (26, 45, 67 ).

 

I then do

 

pos1amt=currpos[longentryindex]/totalcaplong         ( totalcaplong is a scalar )

 

Then I do :

 

badindices=which((pos1amt) > maxstockpercent )

 

my problem is that, since, I already am dealing with a sub vector ( longentryindex ),

I think the badindices are gonna be 1,2,3 ( if any of them meet the criterial ) rather than 26,45,67. I haven’t

checked this but I am fairly certain that’s going to be the case.

 

Is there a way around this so that badindices returns  26,45 or 67 rather than 1,2,3 ?

 

Thanks.

<Prev in Thread] Current Thread [Next in Thread>