\HeaderA{make.link}{Create a Link for GLM Families}{make.link}
\keyword{models}{make.link}
\begin{Description}\relax
This function is used with the \code{\LinkA{family}{family}} functions in
\code{\LinkA{glm}{glm}()}.
Given the name of a link, it returns a link function, an inverse link
function, the derivative \eqn{d\mu / d\eta}{dmu/deta} and a function
for domain checking.
\end{Description}
\begin{Usage}
\begin{verbatim}
make.link(link)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{link}] character or numeric; one of \code{"logit"},
\code{"probit"}, \code{"cauchit"}, \code{"cloglog"}, \code{"identity"},
\code{"log"},  \code{"sqrt"},  \code{"1/mu\textasciicircum{}2"},
\code{"inverse"}, or (deprecated) a non-negative number,
say \eqn{\lambda}{lambda} resulting
in \code{\LinkA{power}{power}} link \eqn{=\mu ^ \lambda}{mu ^ lambda}.
Also (deprecated) a string like \code{"power(0.5)"} to
indicate a call to \code{\LinkA{power}{power}}.

\end{ldescription}
\end{Arguments}
\begin{Value}
A object of class \code{"link-glm"}, a list with components
\begin{ldescription}
\item[\code{linkfun}] Link function \code{function(mu)}
\item[\code{linkinv}] Inverse link function \code{function(eta)}
\item[\code{mu.eta}] Derivative \code{function(eta)} \eqn{d\mu / d\eta}{dmu/deta}
\item[\code{valideta}] \code{function(eta)}\{ \code{TRUE} if
\code{eta} is in the domain of \code{linkinv} \}.
\item[\code{name}] a name to be used for the link
\end{ldescription}
.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{power}{power}}, \code{\LinkA{glm}{glm}}, \code{\LinkA{family}{family}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
utils::str(make.link("logit"))
\end{ExampleCode}
\end{Examples}

