Re: [R] creating a vector of sums

2009-04-28 Thread Alain Guillet
Look at cumsum() Alain Rachel Taylor wrote: Hi, I am trying to create a function for a goodness-of-fit test for the Pareto Distribution for some loss data that I have. So far I have the following: function(X=OTOL) { n <- length(X)-1 #calculated the number of values (extra as 0 included) i

Re: [R] creating a vector of sums

2009-04-28 Thread jim holtman
?cumsum On Tue, Apr 28, 2009 at 5:30 AM, Rachel Taylor wrote: > > Hi, > > I am trying to create a function for a goodness-of-fit test for the Pareto > Distribution for some loss data that I have. > So far I have the following: > > function(X=OTOL) > { > n <- length(X)-1 #calculated the number of

Re: [R] creating a vector of sums

2009-04-28 Thread Andrew Dolman
Look at ?cumsum andydol...@gmail.com 2009/4/28 Rachel Taylor > > Hi, > > I am trying to create a function for a goodness-of-fit test for the Pareto > Distribution for some loss data that I have. > So far I have the following: > > function(X=OTOL) > { > n <- length(X)-1 #calculated the number