Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Dividing column vectors by row numbers

From   "G. Anderson" <>
Subject   st: Dividing column vectors by row numbers
Date   19 Jun 2013 16:43:40 +0100


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?



*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index