Guest User

Untitled

a guest
Jun 18th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. . webuse nlswork, clear
  2. (National Longitudinal Survey. Young Women 14-26 years of age in 1968)
  3.  
  4. . xtsum hours
  5.  
  6. Variable | Mean Std. Dev. Min Max | Observations
  7. -----------------+--------------------------------------------+----------------
  8. hours overall | 36.55956 9.869623 1 168 | N = 28467
  9. between | 7.846585 1 83.5 | n = 4710
  10. within | 7.520712 -2.154726 130.0596 | T-bar = 6.04395
  11.  
  12. . xtreg hours, i(idcode) fe
  13.  
  14. Fixed-effects (within) regression Number of obs = 28,467
  15. Group variable: idcode Number of groups = 4,710
  16.  
  17. R-sq: Obs per group:
  18. within = 0.0000 min = 1
  19. between = 0.0030 avg = 6.0
  20. overall = . max = 15
  21.  
  22. F(0,23757) = 0.00
  23. corr(u_i, Xb) = . Prob > F = .
  24.  
  25. ------------------------------------------------------------------------------
  26. hours | Coef. Std. Err. t P>|t| [95% Conf. Interval]
  27. -------------+----------------------------------------------------------------
  28. _cons | 36.55956 .0487928 749.28 0.000 36.46392 36.6552
  29. -------------+----------------------------------------------------------------
  30. sigma_u | 7.8465853
  31. sigma_e | 8.2323986
  32. rho | .47601892 (fraction of variance due to u_i)
  33. ------------------------------------------------------------------------------
  34. F test that all u_i=0: F(4709, 23757) = 3.64 Prob > F = 0.0000
  35.  
  36. . bootstrap ratio = e(rho), rep(500) seed(123) strata(idcode) saving("rhos.dta", replace): xtreg hours, i(idcode) fe
  37. (running xtreg on estimation sample)
  38. (note: file rhos.dta not found)
  39.  
  40. Bootstrap replications (500)
  41. ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
  42. .................................................. 50
  43. .................................................. 100
  44. .................................................. 150
  45. .................................................. 200
  46. .................................................. 250
  47. .................................................. 300
  48. .................................................. 350
  49. .................................................. 400
  50. .................................................. 450
  51. .................................................. 500
  52.  
  53. Bootstrap results
  54.  
  55. Number of strata = 4,710 Number of obs = 28,467
  56. Replications = 500
  57.  
  58. command: xtreg hours, i(idcode) fe
  59. ratio: e(rho)
  60.  
  61. ------------------------------------------------------------------------------
  62. | Observed Bootstrap Normal-based
  63. | Coef. Std. Err. z P>|z| [95% Conf. Interval]
  64. -------------+----------------------------------------------------------------
  65. ratio | .4760189 .005062 94.04 0.000 .4660976 .4859402
  66. ------------------------------------------------------------------------------
  67.  
  68. . use "rhos.dta", clear
  69. (bootstrap: xtreg)
  70.  
  71. . tw kdensity ratio
Add Comment
Please, Sign In to add comment