Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

link

Transformation from the Observation Scale to the Link Scale


Description

The function transforms a variable from the observation scale (probability or count) to the link scale.

Usage

link(x, type = c("cloglog", "log", "logit", "probit"))

Arguments

x

A vector of real numbers.

type

A character string: “cloglog”, “log”, “logit” or “probit”.

Value

clog-log: log(-log(1 - x ))
log: log(x)
logit: log(x / (1 - x))
probit: qnorm(x)

See Also

Examples

x <- seq(.001, .999, length = 100)
plot(x, link(x, type = "logit"), type = "l", lwd = 2, ylab = "link(proba.)")
lines(x, link(x, type = "cloglog"), lty = 2, lwd = 2)
grid(col = "black")
legend(0, 6, legend = c("logit(x)", "cloglog(x)"), lty = c(1, 2), bg = "white")

aods3

Analysis of Overdispersed Data using S3 Methods

v0.4-1.1
GPL (>= 2)
Authors
Matthieu Lesnoff <matthieu.lesnoff@cirad.fr> and Renaud Lancelot <renaud.lancelot@cirad.fr>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.