similar to: Error using reshape method

Displaying 10 results from an estimated 10 matches similar to: "Error using reshape method"

2007 Feb 12
0
Colouring the polygons, correlation matrix
Hello, Below a modified function for displaying a correlation matrix by Vincent Zoonekynd posted in his excellent tutorial. Compared to the matrix and the legend, the colouring of the polygons is wrong. The error is in the sequence: col=col[N*(mat[i,j]+1)/2]. I cannot seem to devise a sequence which will make the colouring consistent with that in the legend. Can you help? The number of different
2010 Jan 30
2
convert data frame of values into correlation matrix
Hi Group, Consider a data frame like this: mylabel1 <- rep(c("A","B","C"),each=3) mylabel2 <- rep(c("A","B","C"),3) corrs <- c(1,.8,.7,.8,1,.7,.7,.7,1) myData <- data.frame(mylabel1,mylabel2,corrs) myData mylabel1 mylabel2 corrs 1 A A 1.0 2 A B 0.8 3 A C 0.7 4 B
2003 Mar 05
3
reading in tab delimited data in a loop
Dear all, I need to read in 4 sets of tab delimited data in a loop. The 4 data sets are called "simu1.dat", "simu2.dat" and so on. I know what I need on the righthand side of the read.table expression but I can't the left hand side of it to work (see the line in bold below). Can you kindly help? Many thanks. simu1 <- matrix(0,30,3) simu2 <- matrix(0,30,3) simu3
2004 Sep 23
7
decompose a correlation matrix
Is there a simple way to decompose the upper triangle of a correlation matrix to a linear list; For example: X Y Z X 1 2 3 Y 2 1 4 Z 3 4 1 so you get a list like: xy 2 XZ 3 YZ 4 I suspect you can do it with a matrix transformation, but that beyond me at present. Many thanks Mark _________________________ Department of Molecular and Human Genetics, Baylor College of Medicine,
2001 Apr 09
4
fastest R platform
Hello, everyone! I picked up R several months ago and have adopted it as my choice for statistical programming. Coming from a Java background, I can honestly say that R is not only free, it is better tha S-plus: the lexical scope in R makes it very simple to simulate Java's object model. For this, I encourage everyone to read the artcle: Robert Gentleman and Ross Ihaka (2000) "Lexical
2004 Apr 22
0
[LLVMdev] Motivation for 'select' instruction
On Thu, 22 Apr 2004, Vladimir Prus wrote: > > I'm wondering what was the original motivaton for the 'select' > instruction. Was it for convenience, or for some deep reason. I'm > asking because it's causing me some problems (see below) and I'd like to > know I understand the situation before working those problems around. The select instruction is
2004 Apr 22
2
[LLVMdev] Motivation for 'select' instruction
Chris Lattner wrote: > The select instruction is basically an SSA-form "conditional move", or a > very simple form of predication. Integer codes often have very complex > CFG's which are usually doing simple things. For example, it's not > uncommon to see something like this: > > if (blah) > X = 14; > > If the body of the if statement is simple
2004 Apr 22
0
[LLVMdev] Motivation for 'select' instruction
On Thu, 22 Apr 2004, Vladimir Prus wrote: > > > int %logsch(int %ih, int %nbh) { > > > entry: > > > %tmp.1 = setlt int %nbh, 0 > > > %ih_addr.1 = select bool %tmp.1, int 10, int %ih > > > %nbh_addr.1 = select bool %tmp.1, int 0, int %nbh > > > %tmp.4 = setgt int %nbh_addr.1, 22528
2003 Jul 21
1
Analysis of Complex Survey Data
Hi all I would like to perform a logistic regression analysis on some complex survey data with R, but am not sure if there are functions within R that will enable me to do so. Also, are there any extensions of the "cor" function that would enable me to incorporate survey weights when calculating correlation coefficients for bivariate data. Any help on this matter will be greatly
2004 Apr 22
2
[LLVMdev] Motivation for 'select' instruction
Hello, I'm wondering what was the original motivaton for the 'select' instruction. Was it for convenience, or for some deep reason. I'm asking because it's causing me some problems (see below) and I'd like to know I understand the situation before working those problems around. I have the following function: int logsch(int ih,int nbh) { if(nbh < 0)