Learn R Programming

PTSR (version 0.1.2)

ptsr.link: Create a Link for PTSR models

Description

Given the name of a link, this function returns a link function, an inverse link function, the derivative \(d\eta / d\mu\) and the derivative \(d\mu / d\eta\).

Usage

ptsr.link(link = "log")

Arguments

link

character; one of "log", "log1". See ‘Details’.

Value

An object of class "link-ptsr", a list with components

linkfun

Link function function(mu)

linkinv

Inverse link function function(eta)

linkdif

Derivative function(mu) \(d\eta / d\mu\)

mu.eta

Derivative function(eta) \(d\mu / d\eta\)

name

a name to be used for the link

Details

The available links are:

log: \(f(x) = log(x)\)

log1: \(f(x) = log(x-1)\)