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

st: Another question about bootstrap

From   "S.Rahardja" <[email protected]>
To   [email protected]
Subject   st: Another question about bootstrap
Date   Wed, 11 Aug 2004 21:18:06 -0700 (PDT)

Dear All,

I'd like to estimate the variance of a variable
derived from an OLS result (estimates) using

Suppose that I have a regression equation 
 y = a + bx + cz + error

Then let y_hat be the predicted value.
What I'd like to compute is a variance for 
  a + z*y_hat

So what I did is to run
bs "regress y x z" (_b[cons] +
z*(_b[cons]+_b[x]*x+_b[z]*z)), reps(100)

Does this syntax make sense?
Or perhaps there's another way to write it more
shortly by using the "predict" command after regress?



Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage! 
*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index