search for: corr2

Displaying 6 results from an estimated 6 matches for "corr2".

Did you mean: corr
2003 Aug 12
4
print points from a huge matrix
Hi All, I have a 8000*8000 matrix and I want to print out a file with the row name, column name and the value for those point with values satisfying a condition. I tried using a for loop, however, it took me forever to get the result. Is there a fast way to do this? Thanks! Bing --------------------------------- 1060 Commerce Park Oak Ridge National Laboratory P.O. Box 2008, MS 6480 Oak
2010 Mar 24
3
help in matlab - r code
...=2R defined variable for Offset = 1:MaxOffset ; loop to calculate the autocorrelation. basicly, they do cor2, which I think is Spearman correlation, between every column and store it in the vector position??? OffsetPlaquette = data(:,1+Offset:ImageWidthToProcess+Offset); AutoCData(Offset) = corr2(data(:,1:ImageWidthToProcess), OffsetPlaquette) end # IN R would be... but it is not correct! What would be the results in matlab? and how to do it in R? for(Offset in 1:MaxOffset){ OffsetPlaquette = x[,1+Offset:ImageWidthToProcess+Offset] AutoCData[Offset] = cor(c(x[,1:ImageWidthToProcess...
2009 Oct 29
1
correlated binary data and overall probability
Dear All, I try to simulate correlated binary data for a clinical research project. Unfortunately, I do not come to grips with bindata(). Consider corr<-data.frame(ID=as.factor(rep(c(1:10), each=5)), task=as.factor(rep(c(1:5),10))) [this format might be more appropriate:] corr2<-data.frame(ID=as.factor(rep(c(1:10),5)), tablet=as.factor(rep(c(1:5),each=10))) Now, I want to add one column 'outcome' for the binary response: * within each 'task', the probabilty of success (1) is fixed, (say rbinom(x,1,0.7)) * within each 'ID', the outcomes...
2013 Jan 07
0
Something wrong with echo_diagnostic.m
...-end signal a bit\n'); else if (b < 0) printf ('You have a negative delay, the echo canceller has no chance to cancel anything!\n'); else printf ('Delay looks OK.\n'); end disp(N/2); N2= round(N/2); corr1= real(ifft(fft(rec(1:N2)).*conj(fft(play(1:N2))))); corr2= real(ifft(fft(rec(N2+1:end)).*conj(fft(play(N2+1:end))))); [a,b1] = max(corr1); if b1 > N2/2 b1 = b1-N2; end [a,b2] = max(corr2); if b2 > N2/2 b2 = b2-N2; end drift = (b1-b2)/N2; printf ('Drift estimate is %f%% (%d samples)\n', 100*drift, b1-b2); if abs(b1-b2) < 10...
2012 Sep 27
1
List of Variables in Original Order
...etween one variable and several others. I wanted to print a table where the odd-numbered rows contain the variable names and the even-numbered rows contain the correlations. So if VarA is correlated with all the variables in mydata.df, then it would look like var1 var2 var3 corr1 corr2 corr3 var4 var5 var6 corr4 corr5 corr6 . . etc. I tried using a matrix for the correlations and another one for the variable names. I built the correlation matrix using x = matrix(format(cor(mydata.df[,1],mydata.df[,c(2:79)]),digits=4),nc=3) and the variable names matrix...
2012 Aug 08
0
Testing for a second order factor using SEM package
...5 <-> pRU6, corp3 pRU6 <-> pRU2, corp4 rRU1 <- rRU, sdfsdf rRU2 <- rRU, lam32 rRU3 <- rRU, lam33 rRU4 <- rRU, lam34 rRU5 <- rRU, lam35 rRU6 <- rRU, lam36 rRU7 <- rRU, lam37 rRU8 <- rRU, lam38 rRU <-> rRU, mak1 rRU3 <-> rRU1, corr1 rRU7 <-> rRU4, corr2 rRU8 <-> rRU7, corr3 rRU8 <-> rRU2, corr4 rRU5 <-> rRU2, corr5 rRU7 <-> rRU5, corr6 rRU8 <-> rRU5, corr7 sRU <-> pRU, tmp1 sRU <-> rRU, tmp2 pRU <-> rRU, tmp3 sRU <- sof, lok1 pRU <- sof, lok2 rRU <- sof, lok3 sof <-> sof, lok4 cfa.ru...