This function calculates the scales to be used for each coefficient
estimated through an
ms optimization in the
lme
function. If all initial values are zero, the scale is set to one for
all coefficients; else, the scale for a coefficient with non-zero
initial value is equal to the inverse of its initial value and the
scale for the coefficients with initial value equal to zero is set to
the median of the non-zero initial value coefficients.
USAGE:
lmeScale(start)
REQUIRED ARGUMENTS:
start
the starting values for the coefficients to be estimated.
VALUE:
a vector with the scales to be used in
ms for estimating the
coefficients.