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

RE: st: RE: posting question.


From   adiallo5@worldbank.org
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: RE: posting question.
Date   Thu, 30 Sep 2004 11:27:16 -0400

Nick,
I do find a way of doing in the same data. I try:

qui forv i=1/`nclust' {
    cap mrate if v001==`i'
    replace mortrate = $U_1_1
    local cluster = id[`i']
    local mortrate = mortrate[`i']
    post mortrate (`cluster') (`mortrate')
}

and it works fine.
Best regards.
Amadou.




                                                                                                                                           
                      "Nick Cox"                                                                                                           
                      <n.j.cox@durham.ac.uk>           To:       <statalist@hsphsun2.harvard.edu>                                          
                      Sent by:                         cc:                                                                                 
                      owner-statalist@hsphsun2.        Subject:  RE: st: RE: posting question.                                             
                      harvard.edu                                                                                                          
                                                                                                                                           
                                                                                                                                           
                      09/30/2004 11:15 AM                                                                                                  
                      Please respond to                                                                                                    
                      statalist                                                                                                            
                                                                                                                                           
                                                                                                                                           
                                                                                                                                           
                                                                                                                                           




Sorry, no extra ideas.

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

adiallo5@worldbank.org

> Nick,
> Thnaks for the reply. I try it but get:
>
> . su  mortrate
>
>     Variable |       Obs        Mean    Std. Dev.       Min        Max
> -------------+--------------------------------------------------------
>     mortrate |      6445    453.0884           0   453.0884   453.0884
>
> . ta  mortrate
>
>    mortrate |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>    453.0884 |      6,445      100.00      100.00
> ------------+-----------------------------------
>       Total |      6,445      100.00
>
>
> I try also
>
> replace mortrate = $U_1_1 in `i'
> but it is not working as well.
>

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




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