search for: salvadei

Displaying 2 results from an estimated 2 matches for "salvadei".

2011 Nov 17
2
function sum for array
...each of the 3 strata. I've tried to use apply(A,3,sum) but the result is a vector, not a matrix. Another solution is a less elegant B=matrix(rep(0,6),ncol=3) for(t in 1:4) B = B + A[ , , t] May anybody help? S -- ------------------------------------------------------------------- Simone Salvadei Faculty of Economics Department of Financial and Economic Studies and Quantitative Methods University of Rome Tor Vergata e-mail: simone.salvadei@uniroma2.it <federico.belotti@uniroma2.it> url: http://www.economia.uniroma2.it/phd/econometricsempiricaleconomics/ <http://www.econometrics.it...
2011 Nov 02
4
array manipulation
...primitive) 'for' cycle? *# (previously defined) phi=array with dimensions c(c,d,T)* * * *temp=array(0,dim=c(c,d,T))* * for(i in 1:T)* * {* * temp[,,i]=t(phi[,,i])* * }* * phi=temp* * * Thank you very much! S -- ------------------------------------------------------------------- Simone Salvadei Faculty of Economics Department of Financial and Economic Studies and Quantitative Methods University of Rome Tor Vergata e-mail: simone.salvadei@uniroma2.it <federico.belotti@uniroma2.it> url: http://www.economia.uniroma2.it/phd/econometricsempiricaleconomics/ <http://www.econometrics.it...