fixlimits {preputils} | R Documentation |
Fix extremes for logit transformation
Description
Change extreme values in proprtional data prior to logit transformation
Usage
fixlimits(x)
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
fixlimits(0:5/5)
[Package preputils version 1.0.3 Index]