fixlimits: Fix extremes for logit transformation

Description Usage Arguments Details Value Examples

View source: R/fixlimits.R

Description

Change extreme values in proprtional data prior to logit transformation

Usage

1

Arguments

x

name of vector to adjust

Details

The function assumes a data range of 0<=x<=1. Data outside this range are regarded as measurement errors and recoded to NA. In order to avoid generating missings during logit transformation values >=1 and <=0 respectively are shifted to lie within the range (0,1) excluding the borders themselves by recoding them to the mean of the respective border and and the most extreme nearest neighbour.

Value

vector of same length as x with adjusted values

Examples

1
    fixlimits(0:5/5)

preputils documentation built on July 1, 2020, 5:35 p.m.