Bookmark and Share

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]

Re: st: Multiplying elements


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Multiplying elements
Date   Sat, 8 Feb 2014 17:54:54 +0000

Are you talking about Stata matrices? If so, Mata uses intuitive
operators and is more flexible than Stata's matrix language.
Nick
[email protected]


On 8 February 2014 16:29, Marie-Eve St-Onge
<[email protected]> wrote:
> 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/

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index