search for: cor3

Displaying 5 results from an estimated 5 matches for "cor3".

Did you mean: cor
2012 May 28
3
Factanal fits
Greetings, all: I am using factanal in R. When I enter a matrix or a formula, the print method winds up with something like this: Test of the hypothesis that 6 factors are sufficient. The chi square statistic is 28.1 on 22 degrees of freedom. The p-value is 0.172 But when I enter a covmat, the print method winds up with something like this: The degrees of freedom for the model is 22 and the
2011 Jan 28
1
Please help -- Converting a 2D matrix to 3 columns for graphical representation
Hi, I am trying to convert a 2D correlation matrix to 3 columns for graphical representation: rdata = replicate(100, rnorm(15)) #construct a 2D matrix c1 = cor(rdata) #outputs a correlation matrix Now I want to convert the 2D c1 to (row#, col#, correlation) 1 1 cor1 1 2 cor2 1 3 cor3 ... 2 1 cor.. Is there a way to do this? The main reason I am doing this is to find a correlation based graph for values >= 0.85 using, corm <- corm[abs(corm[,3]) >= 0.86, ] library(network); library(sna) net <- network(corm, directed = F) cd <- component.dist(net) delete.vertices...
2012 May 31
0
ignore NA column in a DF (for calculation) without removing them
...346706 ST210 0.9666491 0.9744054 1.0000000 0.9460145 0.9582683 ST211 0.9573701 0.9577192 0.9460145 1.0000000 NA ST212 0.9233598 0.9346706 0.9582683 NA 1.0000000 ", header=TRUE) It still works thanks to na.rm=TRUE, but when I have one file with no data, and so only NAs in the column like this: cor3 <- read.table(text=" ST208 ST209 ST210 ST211 ST212 ST208 1.0000000 NA 0.8104837 0.8899451 0.7486417 ST209 NA NA NA NA NA ST210 0.8104837 NA 1.0000000 0.8304132 0.9141465 ST211 0.8899451 NA 0.8304132 1.0000000 0.8064669 ST212 0.7486417 NA 0.9141465 0.8064669 1.0000000 ",...
2010 Aug 25
1
SEM : Warning : Could not compute QR decomposition of Hessian
...ando, NA, 1 hydro->long_sup15, eau2, NA hydro->long_inf15, eau3, NA topog->pente, NA, 1 topog->est, top2, NA topog->sud, top3, NA topog->nord, top4, NA topog->ouest, top5, NA dist_protect-> urbanisation, cor1,NA dist_protect-> adj_99, cor2, NA dist_protect-> etat_hexa, cor3, NA topog-> urbanisation, cor4, NA topog-> adj_99, cor5, NA topog-> etat_hexa, cor6, NA topog-> access_hexa, cor7, NA topog<->hydro, cor8, NA topog<->pedo, cor9, NA pedo-> urbanisation, cor10, NA pedo-> adj_99, cor11, NA pedo-> etat_hexa, cor12, NA pedo<->hydr...
2013 Feb 13
5
spearman correlation and p-value as a matrix
I have two data matrices that I want to make the correlation between each column from data1 and each column from data 2 and also calculate the p-value Matrices dont have the same size and I tried such a script. > bg <- read.table (file.choose(), header=T, row.names) > bg > Otu00022 Otu00029 Otu00039 Otu00042 Otu00101 Otu00105 Otu00125 Otu00131 Otu00137 Otu00155 Otu00158 Otu00172