Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.SGI.4.40.0508031633350.10177797-100000@origin.chass.utoronto.ca>
Date: 2005-08-03T20:38:54Z
From: Jean Eid
Subject: help regarding loops in R
In-Reply-To: <839df10a050803131082dd7c@mail.gmail.com>

if labda is the elements of the vector and you know what kexp is , you can
use apply

apply(your_vector, 1, function(x) 1- exp^(kexp^(-x)))


HTH

Jean
On Wed, 3 Aug 2005, Rangesh Kunnavakkam wrote:

> I  have a large vector of around 12597 elements and I wish to calculate
> p-value for each element using a formula of something like:
>                         p-value= 1- exp^(kexp^(-labda))
> I was wondering someone could give some ideas how to implement for each element.
> thankyou very much
> Rangesh.K
>
> ______________________________________________
> R-help at 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
>