link.btsr {BTSR} | R Documentation |
Create a Link for BTSR models
Description
Given the name of a link, this function returns a link function,
an inverse link function, the derivative
and the derivative
.
Usage
link.btsr(link)
Arguments
link |
character; one of |
Details
The available links are:
linear: , for
real. The parameter is set using the
argument
ctt.ll
, when invoking the functions created by link.btsr
logit:
log:
loglog:
cloglog:
Value
An object of class "link-btsr"
, a list with components
linkfun |
Link function |
linkinv |
Inverse link function |
linkdif |
Derivative |
mu.eta |
Derivative |
name |
a name to be used for the link |
Examples
mylink <- BTSR::link.btsr("linear")
y = 0.8
a = 3.4
gy = a*y
mylink$linkfun(mu = y, ctt.ll = a); gy
mylink$linkinv(eta = gy, ctt.ll = a); y
mylink$diflink(mu = y, ctt.ll = a); a
mylink$mu.eta(eta = gy, ctt.ll = a); 1/a
[Package BTSR version 0.1.5 Index]