logOdds: logOdds

Description Usage Arguments Value Examples

Description

This function is a transformation function that takes the log odds By design, it is robust to the inclusion of the occasional 0, which it maps to a very small value, which can optionally be specified It's appropriate for mapping (0, 1):-> (-inf, inf).

Usage

1
logOdds(x, smallValue = 10^-5)

Arguments

x

a vector of positive values, between 0 and inf

smallValue

A value to set nominal 0's to, to avoid errors in plotting simulated data, or aberrant responses

Value

a vector containing transformed values

Examples

1
logOdds(1:100/100)

dlandy/demographicModeling documentation built on May 16, 2019, 7:10 p.m.