Displaying 4 results from an estimated 4 matches for "v_j".
Did you mean:
v_
2007 Nov 15
5
Multiply each column of array by vector component
Hi,
I've got an array, say with i,jth entry = A_ij, and a vector, say with jth
entry= v_j. I would like to multiply each column of the array by the
corresponding vector component, i,e. find the array with i,jth entry
A_ij * v_j
This seems so basic but I can't figure out how to do it without a loop.
Any suggestions?
Michal.
2007 Oct 16
2
How to speed up multiple for loop over list of data frames
Hi there,
I have a multiple for loop over a 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_p...
2006 Oct 03
1
Summation in R
Hello!
Maybe this is a trivial question as I'm still a new baby in R but I wish
that u will help me.
I want to calculate the following
U= sum (t_j*v_j)
where t_j is a vector
and v_j is the matrix
Thanks
Dina
2010 Feb 23
1
function on all pairs of vector entries
...there a way in R to compute the multivariate normal density of every pair of entries in a vector efficiently instead of using for loop?
For example
Suppose I have a vector a=c(v_1,...,v_p)=c(0.5343909, -0.7784353, -0.0568370, 1.8772838, -1.3183407, 0.8227418,...)
I want to compute density(v_i, v_j) for every pair of entries (i,j) (i!=j) in a. The joint bivariate distribution is known to be the same for each pair.
Thanks a lot!
Ivon
_________________________________________________________________
[[elided Hotmail spam]]
[[alternative HTML version deleted]]