search for: janevski

Displaying 2 results from an estimated 2 matches for "janevski".

2013 Feb 15
2
Using paste on results from tapply?
Hi, This is what I'm trying to do: 1. I have a vector split.indexes <- c(1, 3, 3, 6, 6, 6) 2. I have another vector with something like data <- c(6, 4, 4, 5, 3, 2) 3. I use groups <- tapply(data, split.indexes, "c") to create a list of vectors based on the levels in split.indexes. As a result groups has the following values: $`1` [1] 6 $`3` [1] 4 4 $`6` [1] 5 3 2 This is
2006 Apr 07
1
Multiple ablines
Thanks in advance, I have searched and read the archives extensively and have been unable to find a question (solution) exactly mimicking my problem. I have created a scatterplot simulation of data through which I have drawn a linear regression in this manner: points(y~x, pch="*", col="black") lm(y~x) fm=lm(y~x) abline(fm, col="red") This works. The problem