studentt(ldf = "loglog", edf = list(), idf = NULL, tol1 = 0.1,
imethod = 1)
studentt2(df = Inf,
llocation = "identity", elocation = list(),
lscale = "loge", escale = list(),
ilocation = NULL, iscale = NULL,
imethod = 1, zero = -2)
studentt3(llocation = "identity", elocation = list(),
lscale = "loge", escale = list(),
ldf = "loglog", edf = list(),
ilocation = NULL, iscale = NULL, idf = NULL,
imethod = 1, zero = -(2:3))
earg
in Links
for general information."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.cauchy1
.
When $\nu=2$ with a scale parameter of sqrt(2)
then
the Student $t$-distribution
corresponds to the standard Koenker distribution,
koenker
.
The degrees of freedom can be treated as a parameter to be estimated,
and as a real and not an integer.
The Student t distribution is used for a variety of reasons
in statistics, including robust regression.
Let $Y = (T - \mu) / \sigma$ where
$\mu$ and $\sigma$ are the location
and scale parameters respectively.
Then studentt3
estimates the location, scale and degrees of freedom parameters.
And studentt2
estimates the location, scale parameters for a user-specified
degrees of freedom, df
.
And studentt
estimates the degrees of freedom parameter only.
The fitted values are the location parameters.
By default the linear/additive predictors are
$(\mu, \log(\sigma), \log\log(\nu))^T$
or subsets thereof.
In general convergence can be slow, especially when there are covariates.
Zhu, D. and Galbraith, J. W. (2010) A generalized asymmetric Student-t distribution with application to financial econometrics. Journal of Econometrics, 157, 297--305.
normal1
,
cauchy1
,
logistic
,
huber
,
koenker
,
TDist
.tdata <- data.frame(x2 = runif(nn <- 1000))
tdata <- transform(tdata, y1 = rt(nn, df = exp(exp(0.5 - x2))),
y2 = rt(nn, df = exp(exp(0.5 - x2))))
fit1 <- vglm(y1 ~ x2, studentt, tdata, trace = TRUE)
coef(fit1, matrix = TRUE)
fit2 <- vglm(cbind(y1, y2) ~ x2, studentt3, tdata, trace = TRUE)
coef(fit2, matrix = TRUE)
Run the code above in your browser using DataLab