Re: [R] fitdistr for t distribution

2009-05-16 Thread Martin Maechler
l == lagreene lagreene...@gmail.com on Fri, 15 May 2009 04:22:59 -0700 (PDT) writes: l Thanks Jorge, l but I still don't understand where they come from. when I use: l fitdistr(mydata, t, df = 9) and get values for m and s, and the variance l of my data should be the

Re: [R] fitdistr for t distribution

2009-05-16 Thread Paul Johnson
On Fri, May 15, 2009 at 6:22 AM, lagreene lagreene...@gmail.com wrote: Thanks Jorge, but I still don't understand where they come from.  when I use: fitdistr(mydata, t, df = 9) and get values for m and s, and the variance of my data should be the df/s? I jsut want to be able to confirm how

Re: [R] fitdistr for t distribution

2009-05-16 Thread spencerg
In addition to seeing the code by typing the name of the function (and copying it from there into a file), you can also enter debug(fitdistr), for example. Then the next time you use fitdistr, either directly or indirectly, it puts you in the environment of that function, and you can

Re: [R] fitdistr for t distribution

2009-05-15 Thread lagreene
Thanks Jorge, but I still don't understand where they come from. when I use: fitdistr(mydata, t, df = 9) and get values for m and s, and the variance of my data should be the df/s? I jsut want to be able to confirm how m and s are calculated mydt - function(x, m, s, df) dt((x-m)/s, df)/s

[R] fitdistr for t distribution

2009-05-14 Thread lagreene
Hi, I was wondering if anyone could tell me how m and s are calculated for a t distribution? I thought m was the sample mean and s the standard deviation- but obviously I'm wrong as this doesn'y give the same answer. Thank you -- View this message in context:

Re: [R] fitdistr for t distribution

2009-05-14 Thread Jorge Ivan Velez
Dear lagreene, See the second example in require(MASS) ?fitdistr HTH, Jorge On Thu, May 14, 2009 at 7:15 PM, lagreene lagreene...@gmail.com wrote: Hi, I was wondering if anyone could tell me how m and s are calculated for a t distribution? I thought m was the sample mean and s the