Thank you very much David for the advice !
I haven't checked the plyr and data.table packages but here is the script to
replace the for loop ::
dfrlm1<-as.data.frame(do.call("rbind", lapply(split(df1, df1$Name),
function(X){coef(rlm(col2 ~ col3, data=X))})))
names(dfrlm1)<-c("Intercept", "Slope")
On Nov 9, 2010, at 8:01 AM, PtitBleu wrote:
Hello again,
Thanks to this forum, I found a lapply command to apply "rlm" to
each Device
of the Name column of the df1 data frame (df1 data frame is given in
the
previous post).
I'm now looking for a nice way to create a data frame with the n
Hello again,
Thanks to this forum, I found a lapply command to apply "rlm" to each Device
of the Name column of the df1 data frame (df1 data frame is given in the
previous post).
I'm now looking for a nice way to create a data frame with the name of the
device, the intercept and the slope. I now
Hello,
I have a simple xyplot with rlm lines.
I would like to add the a and b coefficients (y=ax+b) of the rlm calculation
in each panel.
I know I can do it 'outside' the xyplot command but I would like to do all
at the same time.
I found some posts with the same question, but no answer.
Is it
4 matches
Mail list logo