Computes the weibullMlink
transformation, its inverse and
the first two derivatives.
weibullMlink(theta, shape = NULL, wrt.param = NULL,
bvalue = NULL, inverse = FALSE,
deriv = 0, short = TRUE, tag = FALSE)
For deriv = 0
, the weibmeanlnik
transformation of
theta
, i.e., inverse = FALSE
.
If inverse = TRUE
, then
for given
When deriv = 1
theta
becomes
wrt.param
must be
considered:
A) If inverse = FALSE
, then
eta1
/
wrt.param = 1
, and
eta1
/
wrt.param = 2
.
B) For inverse = TRUE
, this function returns
eta1
and
eta1
conformably arranged
in a matrix, if wrt.param = 1
,
as a function of wrt.param = 2
, a matrix with columns
eta2
and
eta2
is returned.
For deriv = 2
, the second derivatives in
terms of theta
are likewise returned.
Numeric or character. This is
The shape parameter. Required for this link to work.
See
weibullRff
.
Positive integer, either
See Links
.
V. Miranda and Thomas W. Yee.
This is the link for the mean of
the 2--parameter Weibull distribution, also known as the
weibullMlink
transformation.
It can only be used within
weibullRff
and is defined as
weibullMlink
is expressly a function of
Numerical values of Inf
, -Inf
, NA
or NaN
.
weibullQlink
,
weibullRff
,
weibullR
,
lgamma
,
Links
.
eta <- seq(-3, 3, by = 0.1) # this is eta = log(mu(b, a)).
shape <- exp(1) # 'shape' argument.
## E1. Get 'scale' values with A WARNING (not the same length)!
theta <- weibullMlink(theta = eta, shape = shape, inverse = TRUE) # Scale
if (FALSE) {
## E2. Plot theta vs. eta, 'shape' fixed.
plot(theta, eta, type = "l", ylab = "", col = "blue",
main = paste0("weibullMlink(theta; shape = ",
round(shape, 3), ")"))
abline(h = -3:3, v = 0, col = "gray", lty = "dashed")
}
## E3. weibullMlink() and its inverse ##
etabis <- weibullMlink(theta = theta, shape = shape, inverse = FALSE)
summary(eta - etabis) # Should be 0
Run the code above in your browser using DataLab