Learn R Programming

clmstan (version 0.1.1)

get_link_type: Get link type number for Stan

Description

Converts a link function name to the integer code used in Stan.

Usage

get_link_type(link)

Value

An integer (1-11) representing the link type

Arguments

link

A character string specifying the link function

Details

Link type mapping:

  • 1: logit

  • 2: probit

  • 3: cloglog

  • 4: loglog

  • 5: cauchit

  • 6: tlink

  • 7: aranda_ordaz

  • 8: sp

  • 9: log_gamma

  • 10: gev

  • 11: aep