Re: [R] Grabbing Indexes of a certain standard deviation

2012-07-16 Thread gcm
rtain standard deviation residuals[abs(residuals) > (2*sd)] gcm <[hidden email]> wrote on 07/16/2012 07:07:31 AM: > Jean, how would you modify your function to grab all the selected > and not just the first? > Thank you so much! > > From: Jean V Adams [via R] [

Re: [R] Grabbing Indexes of a certain standard deviation

2012-07-16 Thread gcm
t;- c(1, 2.1, 3, 4, 3, 1, 0, -4, -1) # logical, indicating if the residual exceeds 2 standard deviations exceed <- abs(residuals) > (2*sd) # indices of the first exceeding residual of a series which(first(exceed) & exceed) Jean gcm <[hidden email]> wrote on 07/12/2012 11:07

Re: [R] Grabbing Indexes of a certain standard deviation

2012-07-13 Thread gcm
al exceeds 2 standard deviations exceed <- abs(residuals) > (2*sd) # indices of the first exceeding residual of a series which(first(exceed) & exceed) Jean gcm <[hidden email]> wrote on 07/12/2012 11:07:49 AM: > I have a graph of residuals and I am attempting to get a list of

[R] Grabbing Indexes of a certain standard deviation

2012-07-12 Thread gcm
I have a graph of residuals and I am attempting to get a list of the indexes of each time the residual is greater than 2 standard deviations or less than -2 standard deviations, but only the first point of the section. And then I'd also need the first point where the point returns to the range betw