Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Draw Sample from Bivariate Normal Distribution

    Hi,

    I have a data set with 366 observations. From this I want to draw repeated samples from a bivariate normal distribution (with specified means and covariance matrix). For each sample that I draw I want to run a specific OLS regression to obtain coefficients estimates.

    I want to draw the samples and obtain regression estimates for each sample multiple times. How do I program this in stata?

    Any comments will be highly appreciated.

    Thanks.

    Yufei

  • #2
    http://www.stata.com/manuals13/ddrawnorm.pdf

    Comment


    • #3
      Hi,
      I need to draw e and u from a bivariate normal distribution (e,u)~[(0,0),(1,...)] but I must keep a draw e just if it meets a truncation condition u>-z┤ where this comes from a selection equation E=z ┤ + u. I tried the "drawnorm" but I don't know how to operate so that the draw e meets the condition above...
      Any help I will be greatly appreciated. Thank you very much.
      Rodriguez
      Attached Files
      Last edited by Ernesto Rodríguez; 06 Dec 2014, 04:53.

      Comment


      • #4
        #3 is a duplicated post. Please, follow this thread at: http://www.statalist.org/forums/foru...with-condition
        Last edited by Carlo Lazzaro; 07 Dec 2014, 02:41.
        Kind regards,
        Carlo
        (Stata 19.0)

        Comment

        Working...
        X