Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: counting in radioactive measurement


From   "Andreas Aschbacher" <[email protected]>
To   [email protected]
Subject   st: counting in radioactive measurement
Date   Sun, 13 Jun 2004 15:26:51 +0200 (MEST)

Dear fellows !

I am using the following program for counting my variable-values :
/the name of the variable is dosis_corr /
--------------------------
local i = 1
while `i' < 10000 {
        count if dosis_corr >= `i' & dosis_corr  < `i' + 1
        display
        local i = `i' + 1
}
--------------------------
my question:
I'd like to start with i = 30 instead of 1 (see above)by using
multiplikation-faktor mult : mult = 1.003 in the following way:
counting between  30(<=) and (<)30* mult    then
counting between  30*mult(<=)  and (<)30* (mult)^2  then
counting between  30*(mult)^2(<=) and (<)30* (mult)^3  and so on
with: 30 * (mult)^n no larger than 10000 as condition
~
any help will be appreciated very much !
I did not have Stataprogramming-course yet

sincerely aschbacher andreas



    

-- 
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index