Re: [R] hypergeometric vs fisher.test

2010-08-13 Thread TGS
"or an incompetent" Such harsh words Peter. You're not making this a friendly environment for people to ask questions. Is there a less competent attribute mailing list so that some of us don't offend you with our questions? On Aug 13, 2010, at 2:11 PM, Peter Dalgaard wrote: Andrea Franceschini

Re: [R] Dealing with data

2010-08-13 Thread TGS
why I was asking and giving an alternative that would still use 5 degrees of freedom. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message----- > From: TGS [mailto:cran.questi...@gmail.com] > Sent: Friday

Re: [R] Dealing with data

2010-08-13 Thread TGS
ov is 1 line per term). Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message----- > From: TGS [mailto:cran.questi...@gmail.com] > Sent: Friday, August 13, 2010 11:51 AM > To: Greg

Re: [R] Dealing with data

2010-08-13 Thread TGS
hcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of TGS > Sent: Friday, August 13, 2010 11:22 AM > To: David Winsemius > Cc: r-help@r-project.org > Subject: Re: [R] Dea

Re: [R] Dealing with data

2010-08-13 Thread TGS
To clarify, I'd like to create a column of indicators for the respective letters so that I could maybe do regression on indicators, etc. For instance, "A" gets "1", "B" gets "2", and so on. On Aug 13, 2010, at 10:19 AM, David Winsemius wrote: On

[R] Dealing with data

2010-08-13 Thread TGS
# how would I code in R to look at the letter of the alphabet # in the second column and create a indicator column for the # corresponding letter? data(InsectSprays) InsectSprays$spray __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li

Re: [R] R 64-bit and Revolution

2010-08-12 Thread TGS
I downloaded their Academic version and installed it on a Windows virtual machine (as there is not a Mac version available). I played around with it a little bit and wasn't overly impressed. I still like my current configuration: textmate with R bundle on Mac OSX. With textmate data entry is a

Re: [R] Plotting one dot in a graph

2010-08-12 Thread TGS
f2(x) } plot(x,f1(x), type = "l") abline(h = -.1) abline(v = uniroot(f = f3, interval = c(.2, .3))$root, lty = 'dotted') points(x = uniroot(f = f3, interval = c(.2, .3))$root, y = -.1) # Thanks David! On Aug 12, 2010, at 1:33 PM, David Winsemius wrote: On Aug 12, 2010, at 4:15 P

Re: [R] Plotting one dot in a graph

2010-08-12 Thread TGS
ee if it will solve this. On Aug 12, 2010, at 1:00 PM, David Winsemius wrote: On Aug 12, 2010, at 3:54 PM, TGS wrote: > Actually I spoke too soon David. > > I'm looking for a function that will either tell me which point is the > intersection so that I'd be able to plot a

Re: [R] Plotting one dot in a graph

2010-08-12 Thread TGS
y what the horizontal line is, for instance in the case where y (is-not) 0? On Aug 12, 2010, at 12:47 PM, David Winsemius wrote: On Aug 12, 2010, at 3:43 PM, TGS wrote: > I'd like to plot a point at the intersection of these two curves. Thanks > > x <- seq(.2, .3, by = .01) > f <

Re: [R] Plotting one dot in a graph

2010-08-12 Thread TGS
Yes, I'm playing around with other things but the "points()" function is what I was looking for. Thanks On Aug 12, 2010, at 12:47 PM, David Winsemius wrote: On Aug 12, 2010, at 3:43 PM, TGS wrote: > I'd like to plot a point at the intersection of these two curves. Than

[R] Plotting one dot in a graph

2010-08-12 Thread TGS
I'd like to plot a point at the intersection of these two curves. Thanks x <- seq(.2, .3, by = .01) f <- function(x){ x*cos(x)-2*x**2+3*x-1 } plot(x,f(x), type = "l") abline(h = 0) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

Re: [R] Error in rowSums

2010-08-12 Thread TGS
Yes, please do as Erik said in the future but here's one way to do it. (A <- matrix(data = rnorm(n = 9, mean = 0, sd = 1), nrow = 3, ncol = 3, byrow = FALSE, dimnames = NULL)) matrix(rowSums(A)) On Aug 12, 2010, at 11:28 AM, Amit Patel wrote: Hi I am trying to calculate the row sums of a matr

Re: [R] Creating vectors

2010-08-12 Thread TGS
I think I understand your question and the following would produce the result you've posted. (x <- matrix(c(1, 2, 2, 3, 1, 2, 1, 2, 3, 4), nrow=5, byrow=TRUE)) On Aug 12, 2010, at 5:41 AM, clips10 wrote: Thanks for the help, I tried to apply this to a vector with two columns, well I suppose i

Re: [R] Derivative

2010-08-11 Thread TGS
the other side are the same with opposite sign. > > lo <- seq(0, 4.5, by = 1.5) > hi <- seq(1.5, 6, by = 1.5) > roots <- numeric(length(lo)) > > for(i in seq_along(lo)) roots[i] <- uniroot(f, c(lo[i], hi[i]))$root > roots > > See ?uniroot for other options

[R] Derivative

2010-08-11 Thread TGS
How would I numerically find the x value where the derivative of the function below is zero? x <- seq(1,2, by = .01) y <- 5*cos(2*x)-2*x*sin(2*x) plot(x,abs(y), type = "l", ylab = "|y|") __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Numerical Methods Course

2010-08-10 Thread TGS
I want to take this numerical methods course where the text is http://www.amazon.com/Numerical-Methods-J-Douglas-Faires/dp/0534407617 . The instructor recommends MATLAB, but states Fortran, C, Mathematica, or Maple will also do the job. Will R do the job as well? If not, where do you think it

[R] Good Book To Work Through This Summer

2010-08-08 Thread TGS
Dear R users, I'm hoping to get a few suggestions about which books are good to follow along and learn R. I'm hoping to spend the summer going through a good R book as it is applied in linear regression. Thanks! __ R-help@r-project.org mailing list h

[R] Signals and Noise

2010-08-06 Thread TGS
Is there a reference page indicating which packages or functions are available in R for the filed of electrical engineering? I'm not an EE but I've been doing some simulations regarding signals and noise and I found the 'tuneR' to be useful. Are there any others?

[R] Computation Duration Time

2010-08-06 Thread TGS
Is there a way to find out what the computation duration time was to complete executing a code chunk? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guid