[R] help regarding functions & loops

From: Rangesh Kunnavakkam <rangeshk_at_gmail.com>
Date: Sun 07 Aug 2005 - 05:48:16 EST

I am new to R,so excuse me if its too basic. I have a vector of scores

        S= {s1,s2,s3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,sn}
n could be very large.
I want to find p-value for each score and I have the formula

         pvalue= 1-exp(-exp(S))
so any ideas how to get this new vector P={p1,p2,p3,p4,p5....pn} thankyou in advance

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 Sun Aug 07 05:54:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:44 EST