Square root–Log Link Mixtures
sloglink.RdComputes some square root–log mixture link transformations, including their inverse and the first few derivatives.
Arguments
- theta
Numeric or character. See below for further details.
- bvalue
See
Links.- taumix.log
Numeric, of length 1. Mixing parameter directed at
loglink. Then1 - exp(-taumix.log * theta)is used to weightsqrtlink. Thus a 0 value will result inloglink, and a very large numeric such as1e4should be roughly equivalent tosqrtlinkover almost all of the parameter space.- pmix.log
Numeric, of length 1. Mixing probability assigned to
loglink. Then1 - pmix.logis used to weightsqrtlink. Thus a 0 value will result insqrtlinkand 1 is equivalent tologlink.- tol, nmax
Arguments fed into a function implementing a vectorized bisection method.
- inverse, deriv, short, tag
Details at
Links.- c10
Value
The following holds for the
linear combination (LC)
variant.
For deriv = 0,
(1 - pmix.log) * sqrtlink(mu, c10 = c10)
+ pmix.log * loglink(mu)
when inverse = FALSE,
and if inverse = TRUE then a nonlinear
equation is solved for mu,
given
eta passed in as theta.
For deriv = 1, then the function
returns d eta / d
theta as a function of theta if
inverse = FALSE, else if inverse
= TRUE then it returns the reciprocal.