Displaying 1 result from an estimated 1 matches for "gaave".
Did you mean:
gave
2006 Oct 04
1
A more efficient code using whole object approach?
...h of the n rows of the m.o.f matrix we repeat this operation which we record in the temp matrix. The third line of the loop multiplies for each row, the columns of the matrix and takes the resultant mean of the vector.
I know I should use the whole object approach somehow but after many tries I gaave up for the long approach. I know the explanation above is rather long and I apologize for that, any hint/help will be greatly appreciated.
for (i in 1:numrows)
{
mo.o<-t(array(m.o.f[i,],dim=c(numcols,numrows)))
t<-Dm*m.o^alpha1m
l1[i]<-mean(apply(t,1,"prod"))
}...