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

RE: st: RE: posting question.


From   [email protected]
To   [email protected]
Subject   RE: st: RE: posting question.
Date   Thu, 30 Sep 2004 11:37:59 -0400

I meant: I didn't find a way.



                                                                                                                                           
                      [email protected]                                                                                               
                      Sent by:                         To:       [email protected]                                            
                      owner-statalist@hsphsun2.        cc:                                                                                 
                      harvard.edu                      Subject:  RE: st: RE: posting question.                                             
                                                                                                                                           
                                                                                                                                           
                      09/30/2004 11:27 AM                                                                                                  
                      Please respond to                                                                                                    
                      statalist                                                                                                            
                                                                                                                                           
                                                                                                                                           
                                                                                                                                           
                                                                                                                                           




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"

                      <[email protected]>           To:
<[email protected]>
                      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
[email protected]

[email protected]

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




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