I am trying to do a simple multiplication between scalars in two loops and having a problem with it. The new scalar - which is a multiplication of two previous scalars - is empty.
The loops run over people ("k") and countries ("j"). Let see:
Code:
foreach k in `people' { foreach j in `co_list' { scalar v_`k'_co_`j' = scalar(v_all_`k'_co_`j') * scalar(share_`k'_co_`j') } }
Any suggestion is welcome.
Thanks.
0 Response to Scalar multiplication problem
Post a Comment