Re: [R] Removing Outliers Function

2011-02-09 Thread kirtau
I have two questions, 1) if the solutions is only three or four lines of code is there anyway you can share those lines, without disrespecting me further 2) Can you explain why you feel that this is statistical malpractice - - AK -- View this message in context:

Re: [R] Removing Outliers Function

2011-02-09 Thread kirtau
I have two questions, 1) if the solutions is only three or four lines of code is there anyway you can share those lines instead of stating that the solution is easy and providing no code. I prefer not to use an R-Package but have a raw function. 2) Can you explain why you feel that this is

[R] Removing Outliers Function

2011-02-08 Thread kirtau
I am working on a function that will remove outliers for regression analysis. I am stating that a data point is an outlier if its studentized residual is above or below 3 and -3, respectively. The code below is what i have thus far for the function x = c(1:20) y =

Re: [R] adding error bars

2011-01-27 Thread kirtau
Have you tried using the arrows function with angle = 90? you will have to create a mean and standard error variable - - AK -- View this message in context: http://r.789695.n4.nabble.com/adding-error-bars-tp3238562p3242110.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] plot with 2 y axes

2011-01-26 Thread kirtau
I hope this is what you are looking for. you will have to add your own colors and such. year = c(1966:2008) tempur = c(2.9,4.5,1.9,1,2.9,4.3,3.9,4.3,4.9,4.4,4.5,2,2.8,-.4,2.3,3,.3,1.7,3.3,.8,-1.1,.8,4.9,5.2,4.9,1.5,3.7,3.6,3.2,4.8,2.3,2.5,5.2,5.3,4.9,3.2,3.6,3.9,4.8,4.3,3.7,5.8,4.9) indx =

[R] removing outlier function / dataset update

2011-01-26 Thread kirtau
Hi, I have a few lines of code that will remove outliers for a regression test based on the studentized residuals being above or below 3, -3. I have to do this multiple times and have attempted to create a function to lessen the amount of copying, pasting and replacing. I run into trouble with

Re: [R] removing outlier function / dataset update

2011-01-26 Thread kirtau
First off, thank you for the help with the global environment. I have however attempted to run the code and am now presented with a new error which is Error in formula.default(eval(parse(text = x)[[1L]])) : invalid formula and am not sure what to make of it. I have tried a few different work