Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Multiplying elements
From
Marie-Eve St-Onge <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Multiplying elements
Date
Sat, 8 Feb 2014 13:29:52 -0300
Dear all,
I wonder if someone can give me tips on how to write a Stata program to multiply one element by other selected elements in the same row, say element E[1,1] by elements A[1,1] B[1,1] C[1,1], and (1 -A[1,1] -B[1,1] -C[1,1]), then divide each result by /100+1. Additionally, this must go through row by row until the end of the matrix.
Marie-Eve
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/