Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. drop if wsal_val == 0
  2. /* Drop values for people who have no income */
  3. gen wage = wsal_val/wkswork/hrswk
  4. drop if wage < 1
  5. /* Drop values for people who have income under 1 */
  6. gen educ = a_hga
  7. gen propval = hprop_val
  8.  
  9.  
  10. /*education = a_hga. 39 = HS 43 = bachelor 46 = phd*/
  11. drop if educ == 31
  12. drop if educ == 32
  13. drop if educ == 33
  14. drop if educ == 34
  15. drop if educ == 35
  16. drop if educ == 36
  17. drop if educ == 37
  18. drop if educ == 38
  19. drop if educ == 40
  20. drop if educ == 41
  21. drop if educ == 42
  22. drop if educ == 44
  23. drop if educ == 45
  24.  
  25.  
  26. /*Table 1 Descriptive stats*/
  27. summ educ
  28. summ wage
  29. summ propval
  30.  
  31.  
  32. /*Figure 1, all wage densities compared from educ*/
  33. twoway kdensity wage if a_hga == 43 & wage < 150 || kdensity wage if a_hga == 46 & wage < 150 || kdensity wage if a_hga == 39 & wage < 150
  34.  
  35. /*Table 2 Comparisson of means*/
  36. mean wage if educ == 39
  37. mean wage if educ == 43
  38. mean wage if educ == 46
  39.  
  40. mean propval if educ == 39
  41. mean propval if educ == 43
  42. mean propval if educ == 46
  43.  
  44.  
  45. /*Table 3 Regression showing the relationship between wage and estimated property value*/
  46. regress propval wage
  47. /*Figure 2 The residuals from the regression against wage*/
  48. regress propval wage
  49. predict yhat, xb
  50. predict ehat, resid
  51. graph twoway scatter ehat wage
  52.  
  53. /* Test of hypothesis */
  54. regress wage PhD
  55. regress wage bachelor
  56. regress wage hs
  57.  
  58. mean wage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement