[R] fitdistr for t distribution
lagreene101 at gmail.com
Fri May 15 13:22:59 CEST 2009
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
fitdistr(x2, mydt, list(m = 0, s = 1), df = 9, lower = c(-Inf, 0))
Thanks anyway for the help!
Jorge Ivan Velez wrote:
> Dear lagreene,
> See the second example in
> On Thu, May 14, 2009 at 7:15 PM, lagreene <lagreene101 at gmail.com> wrote:
>> I was wondering if anyone could tell me how m and s are calculated for a
>> I thought m was the sample mean and s the standard deviation- but
>> I'm wrong as this doesn'y give the same answer.
>> Thank you
>> View this message in context:
>> Sent from the R help mailing list archive at Nabble.com.
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/fitdistr-for-t-distribution-tp23550779p23557778.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help