Re: [R] multivariate Poisson distribution

2010-11-03 Thread Ted Harding
On 03-Nov-10 21:06:53, Jourdan Gold wrote: > Hello, from a search of the archives and functions, I am looking for > information on creating random correlated counts from a multivariate > Poisson distribution. I can not seem to find a function that does this. > Perhaps, it has not yet been created.

[R] Problems with mgui

2010-11-03 Thread Luis Felipe Parra
Hello I am using the mgui function in the following way: mgui ( graf_cuenta_margen_interfaz,title=c("Gráficas","Histogramas valoración (No lineal) Cuenta de Margen"),exec="Graficar",argText=list(fecha_adelante="Fecha adelante"),closeOnExec=TRUE,output=NULL,,helps=list(fecha_adelante=paste("La valo

Re: [R] Auto-killing processes spawned by foreach::doMC

2010-11-03 Thread Henrik Bengtsson
Hi, I am also interest in ways to in R send signals to other R sessions/processes, ideally in (what appears to be) an OS-independent way. For what it is worth, related question have been asked before, cf. R-devel thread 'Sending signals to current R process from R running under MS Windows (c.f. E

[R] cross-validation for choosing regression trees

2010-11-03 Thread Shiyao Liu
Dear All, We came across a problem when using the "tree" package to analyze our data set. First, in the "tree" function, if we use the default value "mindev=0.01", the resulting regression tree has a single node. So, we set "mindev=0", and obtain a tree with 931 terminal nodes. However, when we

[R] Best Fit line trouble with rsruby

2010-11-03 Thread Deadpool
Hello, I am using R, through rsruby, to create a graph and best fit line for a set of data points, regarding data collected in a Chemistry class. The problem is that although the graph functions perfectly properly, the best fit line will not work. I initially used code I pretty much copied from a

Re: [R] avoiding too many loops - reshaping data

2010-11-03 Thread Bert Gunter
Beware of facile comparisons of this sort -- they may be apples and nematodes. I cannot speak to the others, but (1) tapply does not yield a data frame and (2) tapply actually **is** a (efficient, disguised) loop (at the interpreter level, essentially). I suspect what makes it so much faster is th

[R] Logical vectors

2010-11-03 Thread Stephen Liu
Hi folks, Pls help me to understand follow; An Introduction to R 2.4 Logical vectors http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics 1) > x [1] 1 2 3 4 5 > temp <- x != 1 > temp [1] FALSE TRUE TRUE TRUE TRUE > 2) > x [1] 1 2 3 4 5 > temp <- x > 1 > temp [1] FALSE TRU

Re: [R] Logical vectors

2010-11-03 Thread Gerrit Eichner
On Wed, 3 Nov 2010, Stephen Liu wrote: [snip] 2) x [1] 1 2 3 4 5 temp <- x > 1 temp [1] FALSE TRUE TRUE TRUE TRUE Why NOT temp [1] TRUE FALSE FALSE FALSE FALSE ? Maybe because of the definition of ">" (greater (!) than)? Or do you expect 1 to be greater than 1 and not greate

Re: [R] Logical vectors

2010-11-03 Thread Joshua Wiley
On Wed, Nov 3, 2010 at 10:50 PM, Stephen Liu wrote: > Hi folks, > > Pls help me to understand follow; > > An Introduction to R > > 2.4 Logical vectors > http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics > > 1) >> x > [1] 1 2 3 4 5 a vector, x, is defined with 5 elements, {1, 2,

<    1   2