[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

[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

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

2010-09-20 Thread Gregory Gentlemen
-project.org] On Behalf Of Peter Dalgaard Sent: Friday, September 17, 2010 4:16 PM To: Gregory Gentlemen Cc: r-help@r-project.org Subject: Re: [R] Is there a bisection method in R? On 09/17/2010 09:28 PM, Gregory Gentlemen wrote: If uniroot is not a bisection method, then what function in R does use

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 pda...@gmail.com wrote: From: peter dalgaard pda...@gmail.com Subject: Re: [R] Is there a bisection method in R? To: Gregory Gentlemen gregory_gentle...@yahoo.ca Cc: Ravi Varadhan

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

2010-09-17 Thread Gregory Gentlemen
: Gregory Gentlemen gregory_gentle...@yahoo.ca, r-help@r-project.org Received: Friday, September 10, 2010, 9:56 PM On Sep 10, 2010, at 8:35 PM, huang min wrote: uniroot ... is not a bisection method. On Sat, Sep 11, 2010 at 6:10 AM, Gregory Gentlemen gregory_gentle...@yahoo.ca wrote: Dear

[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

[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

[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 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. Gregory Gentlemen

[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

[R] using nrow to identify one row

2008-03-14 Thread Gregory Gentlemen
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 version

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

2008-03-10 Thread Gregory Gentlemen
. 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 do read the posting guide http

[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] 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)

[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