Learn R Programming

blendedLink (version 1.0)

A New Link Function that Blends Two Specified Link Functions

Description

A new link function that equals one specified link function up to a cutover then a linear rescaling of another specified link function. For use in glm() or glm2(). The intended use is in binary regression, in which case the first link should be set to "log" and the second to "logit". This ensures that fitted probabilities are between 0 and 1 and that exponentiated coefficients can be interpreted as relative risks for probabilities up to the cutoff.

Copy Link

Version

Install

install.packages('blendedLink')

Monthly Downloads

24

Version

1.0

License

GPL-2 | GPL-3

Maintainer

Robert Clark

Last Published

January 31st, 2017

Functions in blendedLink (1.0)

blendedLink

Link object where the link function equals a specified link function for values of the mean up to a specified cutoff, and a smooth linear-rescaling of a different link function when the mean is above the cutoff
pvalue.cutover

p-value of hypothesis test that the cutover of a blended link is equal to a specific value
loglogit.example

An example data file.