[Limdep Nlogit List] Odp: matrix commands

Jadwiga Kostrzewska dwakotki at wp.pl
Thu Jun 4 05:46:47 EST 2009


Hello,
try something like this, but you must check if it is correct ;-)
I hope it is correct...

PROC=name(AA,BB,j)$ ?AA- 5x71 matrix; BB- 5x710 martix
? j=1,...,71
CALC; k1=1+(j-1)*10; k2=j*10$
MATRIX; A1=AA(1:5,j:j); B1=BB(1:5,k1:k2)$
MATRIX; C1=A1'B1; WYNIK(j,1)=C1$  ?WYNIK - that means the result ;-)
ENDPROC$

MATRIX; WYNIK=Init(71,10,0)$
EXEC; PROC=name(beta_i,xr,j); j=1,71$
MATRIX; List; WYNIK$
? the first row of WYNIK should contain elements 1-10 from row 1,
? the second row - elements 11-20 from row 2,
? the third row - elements 21-30 from row 3 etc


Dnia 3-06-2009 o godz. 16:06 Andreas Drichoutis napisał(a):
> Dear all,
> 
>  
> 
> I'm using the below matrix command:
> 
> matrix ; bxr1=beta_i'xr $
> 
>  
> 
> where beta_i is a 5x71 matrix and xr is a 5x710 matrix. Limdep refuses
> to do
> the multiplication with the following error: "Error   585: Matrix being
> moved is too large for target."
> 
>  
> 
> >From the resulting matrix (71x710) I'm only interested in 10 elements from
> each row i.e. I want to keep elements 1-10 from row 1, elements 11-20 from
> row 2, elements 21-30 from row 3 etc and then collapse this matrix to a
> 71x10 matrix.
> 
>  
> 
> Does anyone know how to do that and how to get around the error message?
> There must be a neat way to do it.
> 
>  
> 
> Kind regards,
> 
> Andreas Drichoutis
> 
> _______________________________________________
> Limdep site list
> Limdep at limdep.itls.usyd.edu.au
> http://limdep.itls.usyd.edu.au

----------------------------------------------------
20. rocznica odzyskania wolności i upadku komunizmu 
w Europie Środkowej.
Zapraszamy na stronę 
http://klik.wp.pl/?adr=http%3A%2F%2F3989.pl&sid=755





More information about the Limdep mailing list