Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: predicted probabilities


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: predicted probabilities
Date   Mon, 17 Nov 2008 11:45:18 +0000 (GMT)

--- "Joao Ricardo F. Lima" <jricardofl@gmail.com> wrote:
> reading Maarten's answer, I would like to ask if this procedure is
> correct:
> 
> ******
> " // creating predictions while keeping other variables constant
>  // predicted probabilities of urban women of average age
>  preserve
>  sum age if e(sample), meanonly
>  replace age = r(mean)
>  replace female = 1
>  replace rural = 0
> 
>  predict pra*, pr
>  table race , c(m pra1 m pra2 m pra3 m pra4 m pra5)
> 
>  restore"
> ***************
> because the value of r(mean) (sample) is different of svy: mean
> (population):

Good catch, using -svy: mean- does seem more reasonable.

thanks,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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