make.link
Create a Link for GLM Families
This function is used with the family
functions in
glm()
.
Given the name of a link, it returns a link function, an inverse link
function, the derivative $dmu/deta$ and a function
for domain checking.
- Keywords
- models
Usage
make.link(link)
Arguments
- link
- character; one of
"logit"
,"probit"
,"cauchit"
,"cloglog"
,"identity"
,"log"
,"sqrt"
,"1/mu^2"
,"inverse"
.
Value
-
A object of class
- linkfun
- Link function
function(mu)
- linkinv
- Inverse link function
function(eta)
- mu.eta
- Derivative
function(eta)
$dmu/deta$ - valideta
function(eta)
{TRUE
ifeta
is in the domain oflinkinv
}.- name
- a name to be used for the link .
"link-glm"
, a list with components
See Also
Examples
library(stats)
utils::str(make.link("logit"))
Community examples
Looks like there are no examples yet.