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/