sloglink | R Documentation |
Computes some square root–log mixture link transformations, including their inverse and the first few derivatives.
sloglink(theta, bvalue = NULL, taumix.log = 1, tol = 1e-13,
nmax = 99, inverse = FALSE, deriv = 0, short = TRUE,
tag = FALSE, c10 = c(2, -2))
lcsloglink(theta, bvalue = NULL, pmix.log = 0.01, tol = 1e-13,
nmax = 99, inverse = FALSE, deriv = 0, short = TRUE,
tag = FALSE, c10 = c(2, -2))
theta |
Numeric or character. See below for further details. |
bvalue |
See |
taumix.log |
Numeric, of length 1.
Mixing parameter directed at
|
pmix.log |
Numeric, of length 1.
Mixing probability assigned
to |
tol , nmax |
Arguments fed into a function implementing a vectorized bisection method. |
inverse , deriv , short , tag |
Details at |
c10 |
See |
For general information see
alogitlink
.
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.
The default values for taumix.log
and pmix.log
may change in the future.
The name and order of the arguments
may change too.
Thomas W. Yee
alogitlink
,
sqrtlink
,
loglink
,
Links
,
poissonff
,
hdeff
.
mu <- seq(0.01, 3, length = 10)
sloglink(mu)
max(abs(sloglink(sloglink(mu), inv = TRUE) - mu)) # 0?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.