This function calculates the scales to be used for each coefficient estimated through an nlm 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.
此函数计算每个系数通过nlmlme函数的优化估计的尺度。如果所有的初始值是零,规模设置为所有系数;否则,规模为初始值非零系数等于其初始值的倒数和规模系数与初始值等于零设置为非零初始值系数的中位数。
用法----------Usage----------
lmeScale(start)
参数----------Arguments----------
参数:start
the starting values for the coefficients to be estimated.
估计系数的起始值。
值----------Value----------
a vector with the scales to be used in nlm for estimating the coefficients.
要在nlm用于估计系数与尺度的向量。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>