Change extreme values in proprtional data
prior to logit transformation
Usage
fixlimits(x)
Arguments
x
name of vector to adjust
Value
vector of same length as x with adjusted values
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.