Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: finding a value from a distribution based on percentile


From   Shuaizhang Feng <[email protected]>
To   [email protected]
Subject   Re: st: RE: finding a value from a distribution based on percentile
Date   Mon, 19 Mar 2007 03:19:03 -0700 (PDT)

Thanks, patrick:

The real situation I am facing is: I have a variable y
which has certain values missing, I would like to
impute the missing values based on a predicted
percentil.  So the x variable contains a percentile
that I will use to forecast the y variables for those
missing. 

Example:
y     x
200   .
100   .
.    0.5
.    0.1
234  .

How can I assign a value for those missing y(s) based
on the perceniles from x?

In this example, I guess the y value corresponding to
x=0.5 is 200 and for x=0.1 is 100.  Note I am using
the distribution of y only for those observed.

Thanks.

Shuaizhang
 



--- Patrick W�hrle Guimar�es <[email protected]>
wrote:

>   I think that Shuaizhang would like to calculate
> centile using
> another command that - centile (maybe He has a
> complex design or other
> kind of dataset) - "I know you can calculate the
> percentiles for y
> using "centile", but how do you go the other way?".
> I always use
> centile and I didnt replay because I didnt think
> other way to do this.
> Could you explain better Shuaizhang?
> 
> 
> -- 
> Patrick
> *
> *   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/
> 



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
*
*   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