Skip to content
Prev 180460 / 398503 Next

fitdistr for t distribution

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
fitdistr(x2, mydt, list(m = 0, s = 1), df = 9, lower = c(-Inf, 0))

Thanks anyway for the help!
Jorge Ivan Velez wrote: