emtd | R Documentation |
EM algorithm to estimate the location and scale of a t distribution for given degrees of freedom.
emtd(y, v, initmu = mean(y), inits = sd(y), tol = 1e-04)
y |
The data. |
v |
Degrees of freedom. |
initmu |
Initial value for the location parameter. |
inits |
Initial value for the scale parameter. |
tol |
Tolerance for the iterative procedure. |
By default the initial values are set to the sample mean and standard deviation.
It returns the estimated location and scale parameters for each iteration.
Raúl Eyzaguirre.
y = c(10, 12, 16, 15, 15, 17, 20, 21, 16, 24, 13, 22, 14, 15, 16, 16, 17, 18, 19, 18, 23, 20, 30)
emtd(y, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.