[R] Error with grad() for numerical differential of a function

2013-03-10 Thread Oleguer Plana Ripoll
Hello everyone, I have programmed a function and, among other things, it has to compute the differential of a function. I have been using the function grad() and I have programmed some simulated studies. I have testes with 72,576 different combinations of the initial values and now I got an err

Re: [R] distribution functions and lists

2013-03-03 Thread Oleguer Plana Ripoll
rgument(s) (q1 = 1, q2 = 2) Do you know how can I solve it? Thank you, Oleguer On 03/03/2013, at 20:32, Milan Bouchet-Valat wrote: > Le dimanche 03 mars 2013 à 19:49 +0100, Oleguer Plana Ripoll a écrit : >> Hello everyone, >> >> I have a quick question but I am stuck w

[R] distribution functions and lists

2013-03-03 Thread Oleguer Plana Ripoll
Hello everyone, I have a quick question but I am stuck with it and I do not know how to solve it. Imagine I need the distribution function of a Weibull(1,1) at t=3, then I will write pweibull(3,1,1). I want to keep the shape and scale parameters in a list (or a vector or whatever). Then I hav