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: Dividing column vectors by row numbers
From
"G. Anderson" <[email protected]>
To
[email protected]
Subject
st: Dividing column vectors by row numbers
Date
19 Jun 2013 16:43:40 +0100
Hi,
Is it possible using Stata matrices (or Mata) to do element by element
operations based on the row number of that element. For example, if I have
a column vector, is there a simple way to divide each element by the row
number?
Thanks,
Gareth
*
* 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/