Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Obtaining a average replications from a random draw


From   Theophilus Dapel <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Obtaining a average replications from a random draw
Date   Thu, 13 Mar 2014 20:51:18 +0000

I havent try that. Pls put me through.

Thanks,
Dapel
On 13 Mar 2014, at 20:47, Fernando Rios Avila <[email protected]> wrote:

> What about applying bsample and sample, in a two step process?
> 
> 
> On Thu, Mar 13, 2014 at 4:02 PM, Theophilus Dapel <[email protected]> wrote:
>> Dear Stata Users,
>> 
>> I have a simple predicted equation for approximately 7000 observations and need to obtain the value of "y":
>> 
>> y = a + bx + e -------------- (1)
>> 
>> The parameters "a" and "b" are given. Values of the variable "x" are also given. To fine the value of 'y', we need the given values of ''e''.
>> 
>> Now, I have "e" elsewhere with approximately 8000 observations. I wish to take a random draw of 7000 with replacement from the 8000 so I can substitute for "e" in (1). This is fairly simple because I was able to use bsample 7000. This is just a single replication. What if I want to have at least 300 replications (sampling "e" 300 times and substituting for "e" 300 times) and then take the average of the 300 "y's" resulting from the replication and use the average in place of "y" .
>> 
>> Any commands to deal with these?
>> 
>> Thanks,
>> Dapel
>> 
>> 
>> 
>> 
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>> *   http://www.ats.ucla.edu/stat/stata/
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index