search for: rho_p

Displaying 1 result from an estimated 1 matches for "rho_p".

Did you mean: rho_
2007 Oct 16
2
How to speed up multiple for loop over list of data frames
...list of data frames for ( i in 1:(N-1) ) { for ( j in (i+1):N ) { for ( p in 1:M ) { v_i[p] = alist[[p]][i,"v"] v_j[p] = alist[[p]][j,"v"] } rho_s = cor(v_i, v_j, method = "spearman") rho_p = cor(v_i, v_j, method = "pearson" ) iv = c( iv, min(i, j) ) jv = c( jv, max(i, j) ) rho_sv = c( rho_sv, rho_s) rho_pv = c( rho_pv, rho_p) } } N is of the order of 400, M about 800. This takes me an entire day basically. Is there an...