averageData(subsample, scaling = c("slide", "replicate"),
distinguish = c("cellline", "treatment"))distinguish.nls), "sigma" (the standard error of the truth parameter returned by nls), "connection" (integer, signals can only be compared on the same scale if they agree in "ab", and "connection") and one column for each entry of distinguish.scaling there is an underlying "true" antibody time-course for each level of distinguish. The signals of different scaling levels are assumed to differ by a scaling factor. Both, antibody time-course values and scaling parameters are estimated simulatenously by generalized least squares estimation:
$$GRSS = \sum_{i,j}(s_i S_{ij}- y_j/s_i)^2/(\sigma_{ij,0}^2 + (y_j/s_i)^2 \sigma_{ij,R}^2)$$
where $i, j$ correspond to the levels of c("time", "ab", distinguish) and the levels of scaling.