This function computes the probability density of the 3-parameter Student t distribution given parameters (parst3
. The probability density function is
For value X
, the built-in R functions can be used. For dnorm(X, mean=U,
sd=A)
and for U
= A
=dt((X-U)/A, N)/A
for N
=dnorm
is used for the Normal distribution and the R function dt
is used for the 1-parameter Student t distribution.
pdfst3(x, para, paracheck=TRUE)
A real value vector.
A logical on whether the parameter should be check for validity.
Probability density (
Asquith, W.H., 2011, Distributional analysis with L-moment statistics using the R environment for statistical computing: Createspace Independent Publishing Platform, ISBN 978--146350841--8.
# NOT RUN {
xs <- -200:200
para <- vec2par(c(37,25,114), type="st3")
plot(xs, pdfst3(xs, para), type="l")
para <- vec2par(c(11,36,1000), type="st3")
lines(xs, pdfst3(xs, para), lty=2)
para <- vec2par(c(-7,60,40), type="st3")
lines(xs, pdfst3(xs, para), lty=3)
# }
Run the code above in your browser using DataLab