Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How to perform a productory


From   "josemaria" <jmpsouza@usp.br>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: How to perform a productory
Date   Mon, 22 Oct 2007 14:55:58 -0300

In Portuguese, we have somatório, same as soma (sum), but we do not have produtório.
José Maria
José Maria Pacheco de Souza, Professor Titular (aposentado)
Departamento de Epidemiologia
Faculdade de Saúde Pública/Universidade de São Paulo
Av. Dr. Arnaldo, 715 cep 01246-904
São Paulo Brasil
fones (11)3061-7747 (11)3061-7724 (11)3714-2403 (11)3768-8612
fax (11)3082-2920 (11)3714-2403
www.fsp.usp.br/~jmpsouza
jmpsouza@usp.br

----- Original Message ----- From: "n j cox" <n.j.cox@durham.ac.uk>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, October 22, 2007 11:24 AM
Subject: Re: st: How to perform a productory



I Googled "productory" and didn't find anything recognisable.
Perhaps you want a running product.

gen runningproduct = exp(sum(log(K_1)))

Alternatively, if you ask in Italian, somebody should
recognise what you want. There is no "English only" rule.

Nick
n.j.cox@durham.ac.uk

Carlo Lazzaro

I have a variable including 30 obs (please see beneath. I would like to
calculate a productory but I have neither found out a Stata 9/2 useful
in-built function nor a helpful FAQ (or it seems so).

K_1
.9666666
1
.9642857
1
.9615384
1
.9583333
.9565217
1
.952381
.95
.9473684
.9444444
.9411765
1
.9333333
1
1
1
.9090909
1
.8888889
.875
.8571429
.8333333
.8
.75
1
1
1


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/



--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.15.5/1084 - Release Date: 10/21/aaaa 15:09


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index