[R] ~3/30/2013 3:09:18 PM~

2013-03-30 Thread Gregory Gentlemen
http://www.rideonthewaves.com/gtbzkeql/yi.mceeu?pihsc Gregory Gentlemen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] .::Gregory Gentlemen::.

2013-03-30 Thread Gregory Gentlemen
http://www.rumipambadelzuro.com/waqztn/hyd.cn?gdqk Gregory Gentlemen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Is there a bisection method in R?

2010-09-20 Thread Gregory Gentlemen
Fair enough. I didn't intend to offend anyone. Please accept my apologies. Greg --- On Mon, 9/20/10, peter dalgaard wrote: From: peter dalgaard Subject: Re: [R] Is there a bisection method in R? To: "Gregory Gentlemen" Cc: "Ravi Varadhan" , r-help@r-project.org Recei

Re: [R] Is there a bisection method in R?

2010-09-20 Thread Gregory Gentlemen
Now that is a more useful reply than "Why do you assume there is one?". Thanks a lot Ravi! --- On Fri, 9/17/10, Ravi Varadhan wrote: From: Ravi Varadhan Subject: RE: [R] Is there a bisection method in R? To: "'Peter Dalgaard'" , "'Gregory Gentlem

Re: [R] Is there a bisection method in R?

2010-09-17 Thread Gregory Gentlemen
If uniroot is not a bisection method, then what function in R does use bisection? Thanks. --- On Fri, 9/10/10, David Winsemius wrote: From: David Winsemius Subject: Re: [R] Is there a bisection method in R? To: "huang min" Cc: "Gregory Gentlemen" , r-help@r-project.

[R] Is there a bisection method in R?

2010-09-10 Thread Gregory Gentlemen
Dear fellow R-users, Is there a function that does the bisection method? I was unable to find one. Thanks in advance. Gregory [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-h

[R] Function to compute the multinomial beta function?

2010-07-05 Thread Gregory Gentlemen
Dear R-users, Is there an R function to compute the multinomial beta function? That is, the normalizing constant that arises in a Dirichlet distribution. For example, with three parameters the beta function is Beta(n1,n2,n2) = Gamma(n1)*Gamma(n2)*Gamma(n3)/Gamma(n1+n2+n3) Thanks in advance for

[R] Producing residual plots by time for lme object

2010-07-02 Thread Gregory Gentlemen
Fellow R-users, I have a longitudinal data set with missing values in it. I would like to produce a residual plot for each time using panel.xyplot function but I get an error message. Here's a simple example, library(nlme) set.seed(1544) longdata <- data.frame(ID=gl(10,1,50), y=rnorm(50), time

[R] Function for describing segements in sequential data

2010-01-27 Thread Gregory Gentlemen
and ends at 3, and the second segment starts at location 8 and ends at location 10. Is there an efficient way of doing this in R without having to right a bunch of if-else conditions? I know the rle function will report the length of the segments but not the endpoints. Thanks in advance. Greg

[R] Text editors for Sweave (rnw) files

2009-10-06 Thread Gregory Gentlemen
Hi fellow R-users, Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them. Thanks in advance, Greg ___

[R] matrix manipulation problem

2009-09-01 Thread Gregory Gentlemen
Dear fellow R-users, Say we have a matrix x, defined as follows set.seed(50) x <- matrix(rbinom(100*5,1, p=0.75),nrow=100, ncol=5) Now the interpretation of x is that each for of x is actually a sequence of length 5, and i would like to transform x in such a way that I can describe the frequen

[R] how to do pairwise sums in a matrix

2008-05-21 Thread Gregory Gentlemen
y 5 matrix where the columns are the sums of A+B measurements for each of the 5 variables. Thanks for any help. Gregory Gentlemen - [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] using nrow to identify one row

2008-03-14 Thread Gregory Gentlemen
m I am indexing the rows of large matrices according to another variable and I need to test when the resulting matrices have 0, 1 or more rows. Thanks in advance for any assistance. Best regards, Gregory Gentlemen - [[alternative HTML vers

[R] How can I sample from a two-dimensional grid of points

2008-03-10 Thread Gregory Gentlemen
Thanks in advance for any help. All the best, Gregory Gentlemen - [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] Listing the data contents of a package

2008-01-14 Thread Gregory Gentlemen
Hi R users, Simply question: On the command line, how do I list the datasets contained within a package, e.g. MASS? I scanned the mailing list history but was unable to find the answer. Thanks in advance. Gregory -

[R] evaluating a vector of characters

2008-01-07 Thread Gregory Gentlemen
Dear R users, I'd like to evaluate a vector of characters. For example, say I have a data frame called Data including the field names x1, x2, x3, and I'd like to a list out of paste("Data$x", 1:3, sep=""). How can I get list to evaluate paste("Data$x", 1:3, sep="") as an R object rather than a

[R] matrix elementwise average with NA's

2007-11-21 Thread Gregory Gentlemen
Hello fellow R users, I have a matrix computation that I imagine should be relatively easy to do, however I cannot figure out a nice way to do it. I have two matrices, for example mat1 <- matrix(c(1:5,rep(NA,5), 6:10), nrow=3, byrow=T) mat2 <- matrix(c(2:6, 6:10, rep(NA,5)), nrow=3, byrow=T) I

Re: [R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Gregory Gentlemen
if I wanted to plot a density of an inverse gamma distribution with small scale and shape parameters, how would I do so? Peter Dalgaard <[EMAIL PROTECTED]> wrote: Gregory Gentlemen wrote: > Hello fellow R users, > > I wanted to view the density on the standard deviation scale of a

[R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Gregory Gentlemen
Hello fellow R users, I wanted to view the density on the standard deviation scale of a gamma(0.001, 0.001) prior for the precision. I did this as seen in the code below and found that for some reason rgamma is giving many values equal to zero, which is strange since a gamma distribution is con