[R] How to plot a shifted Gamma distribution

2014-02-13 Thread Rodrigo Cesar Silva
I have the parameters of a gamma distribution that I am trying to plot. The parameters are shape = 2, scale = 5.390275 and the minimum value x0 is 65.44945. Since the gamma is shifted by x0, we have Mean = shape*scale + x0 = 76.23 My question is, how can I do it in r?

Re: [R] How to plot a shifted Gamma distribution

2014-02-13 Thread Ted Harding
On 13-Feb-2014 15:30:43 Rodrigo Cesar Silva wrote: I have the parameters of a gamma distribution that I am trying to plot. The parameters are shape = 2, scale = 5.390275 and the minimum value x0 is 65.44945. Since the gamma is shifted by x0, we have Mean = shape*scale + x0

Re: [R] How to plot a shifted Gamma distribution

2014-02-13 Thread Greg Snow
It is not hard to write your own function: dsgamma - function(x, x0=0, ...) { dgamma(x-x0,...) } and similar for the other functions. You might also want to look at ?curve for plotting (your plotting is fine, curve is just another option). On Thu, Feb 13, 2014 at 8:30 AM, Rodrigo Cesar Silva