Sei sulla pagina 1di 30

.

pwcorr predy bmi, obs sig


variable predy not found
r(111);
. list bmi
variable bmi not found
r(111);
. list a_bmi4
+--------+
| a_bmi4 |
|--------|
1. | 3666 |
2. | 2512 |
3. | 2956 |
4. | 2329 |
5. | 9999 |
|--------|
6. | 2108 |
7. | 2150 |
8. | 2501 |
9. | 3550 |
10. | 9999 |
|--------|
11. | 2372 |
12. | 2963 |
13. | 2418 |
14. | 2749 |
15. | 2157 |
|--------|
16. | 3762 |
17. | 2418 |
18. | 3302 |
19. | 9999 |
20. | 2418 |
|--------|
21. | 2064 |
22. | 3048 |
23. | 2146 |
24. | 6670 |
25. | 4629 |
|--------|
26. | 2049 |
27. | 2225 |
28. | 3047 |
29. | 2825 |
30. | 2529 |

|--------|
31. | 3302 |
32. | 2708 |
33. | 2199 |
34. | 2446 |
35. | 2605 |
|--------|
36. | 3256 |
37. | 2236 |
38. | 2468 |
39. | 3108 |
40. | 9999 |
|--------|
41. | 3186 |
42. | 2971 |
43. | 9999 |
44. | 4771 |
45. | 2406 |
|--------|
46. | 2236 |
47. | 3882 |
48. | 2464 |
49. | 9999 |
50. | 9999 |
|--------|
51. | 9999 |
52. | 2446 |
53. | 2438 |
54. | 2580 |
55. | 2651 |
|--------|
56. | 2588 |
57. | 2202 |
58. | 9999 |
59. | 4166 |
60. | 2658 |
|--------|
61. | 1971 |
62. | 4197 |
63. | 2904 |
64. | 2264 |
65. | 2196 |
|--------|
66. | 3550 |
67. | 2438 |
68. | 2494 |
69. | 9999 |
70. | 2264 |
|--------|

71. | 3612 |
72. | 3482 |
73. | 2590 |
--Break-r(1);
. tab bmi
variable bmi not found
r(111);
. tab a_bmi4
computed |
body mass |
index | Freq. Percent
Cum.
------------+----------------------------------1207 |
1
0.00
0.00
1281 |
1
0.00
0.01
1301 |
1
0.00
0.01
1367 |
1
0.00
0.02
1395 |
1
0.00
0.02
1400 |
1
0.00
0.03
1402 |
1
0.00
0.03
1464 |
1
0.00
0.04
1468 |
1
0.00
0.04
1491 |
1
0.00
0.05
1496 |
1
0.00
0.05
1501 |
1
0.00
0.06
1510 |
1
0.00
0.06
1518 |
1
0.00
0.07
1521 |
1
0.00
0.07
1524 |
1
0.00
0.07
1531 |
1
0.00
0.08
1537 |
1
0.00
0.08
1539 |
1
0.00
0.09
1545 |
1
0.00
0.09
1554 |
1
0.00
0.10
1561 |
1
0.00
0.10
1562 |
1
0.00
0.11
1565 |
1
0.00
0.11
1566 |
2
0.01
0.12
1569 |
1
0.00
0.13
1582 |
2
0.01
0.13
1583 |
1
0.00
0.14
1584 |
1
0.00
0.14
1598 |
4
0.02
0.16
1600 |
1
0.00
0.17
1601 |
2
0.01
0.18
1604 |
2
0.01
0.19

1609 |
1613 |
1617 |
1619 |
1626 |
1628 |
1631 |
1632 |
1633 |
1634 |
1639 |
1646 |
1648 |
1650 |
1651 |
1654 |
1657 |
1664 |
1666 |
1668 |
1676 |
1677 |
1679 |
1686 |
1695 |
1698 |
1701 |
1703 |
1704 |
1705 |
1707 |
1714 |
1717 |
1718 |
1720 |
1722 |
1723 |
1726 |
1731 |
1735 |
1737 |
1740 |
1741 |
1742 |
1747 |
1751 |
1752 |
1754 |
1757 |

1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
3
1
2
1
8
2
1
3
3
1
3
1
1
1
4
1
1
1
1
9
2
3
8
1
1
2
3
3
1
2
8
2
6
1

0.00
0.00
0.01
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.01
0.00
0.01
0.00
0.01
0.00
0.04
0.01
0.00
0.01
0.01
0.00
0.01
0.00
0.00
0.00
0.02
0.00
0.00
0.00
0.00
0.04
0.01
0.01
0.04
0.00
0.00
0.01
0.01
0.01
0.00
0.01
0.04
0.01
0.03
0.00

0.19
0.20
0.20
0.21
0.21
0.22
0.22
0.23
0.23
0.24
0.24
0.25
0.25
0.26
0.27
0.28
0.28
0.29
0.30
0.33
0.34
0.35
0.36
0.38
0.38
0.40
0.40
0.40
0.41
0.43
0.43
0.44
0.44
0.45
0.49
0.50
0.51
0.55
0.55
0.56
0.57
0.58
0.60
0.60
0.61
0.65
0.66
0.68
0.69

1758 |
1761 |
1763 |
1767 |
1768 |
1769 |
1772 |
1774 |
1775 |
1776 |
1778 |
1779 |
1780 |
1783 |
1784 |
1785 |
1789 |
1793 |
1795 |
1796 |
1797 |
1798 |
1799 |
1801 |
1805 |
1806 |
1811 |
1812 |
1815 |
1816 |
1818 |
1820 |
1822 |
1823 |
1828 |
1833 |
1834 |
1835 |
1836 |
1837 |
1840 |
1846 |
1850 |
1852 |
1853 |
1856 |
1858 |
1859 |
1860 |

1
8
4
4
1
1
4
3
7
5
3
15
2
3
1
1
7
1
1
4
4
2
3
6
9
11
5
3
1
1
4
4
5
4
11
15
10
1
3
2
5
2
6
2
1
3
8
15
12

0.00
0.04
0.02
0.02
0.00
0.00
0.02
0.01
0.03
0.02
0.01
0.07
0.01
0.01
0.00
0.00
0.03
0.00
0.00
0.02
0.02
0.01
0.01
0.03
0.04
0.05
0.02
0.01
0.00
0.00
0.02
0.02
0.02
0.02
0.05
0.07
0.05
0.00
0.01
0.01
0.02
0.01
0.03
0.01
0.00
0.01
0.04
0.07
0.06

0.69
0.73
0.75
0.77
0.77
0.78
0.80
0.81
0.84
0.86
0.88
0.95
0.96
0.97
0.98
0.98
1.01
1.02
1.02
1.04
1.06
1.07
1.08
1.11
1.15
1.20
1.23
1.24
1.25
1.25
1.27
1.29
1.31
1.33
1.38
1.45
1.50
1.50
1.52
1.53
1.55
1.56
1.59
1.59
1.60
1.61
1.65
1.72
1.78

1862 |
1864 |
1865 |
1866 |
1868 |
1869 |
1870 |
1873 |
1875 |
1876 |
1878 |
1879 |
1882 |
1883 |
1884 |
1885 |
1887 |
1888 |
1889 |
1891 |
1892 |
1893 |
1894 |
1898 |
1899 |
1901 |
1903 |
1905 |
1906 |
1907 |
1909 |
1912 |
1915 |
1917 |
1918 |
1920 |
1923 |
1924 |
1926 |
1927 |
1930 |
1931 |
1933 |
1934 |
1935 |
1938 |
1941 |
1943 |
1944 |

1
13
1
1
10
6
8
1
3
2
2
4
5
20
4
2
6
6
4
1
28
13
2
5
8
5
5
13
5
1
8
1
3
9
25
1
1
26
14
1
8
2
1
5
6
2
45
4
2

0.00
0.06
0.00
0.00
0.05
0.03
0.04
0.00
0.01
0.01
0.01
0.02
0.02
0.09
0.02
0.01
0.03
0.03
0.02
0.00
0.13
0.06
0.01
0.02
0.04
0.02
0.02
0.06
0.02
0.00
0.04
0.00
0.01
0.04
0.12
0.00
0.00
0.12
0.07
0.00
0.04
0.01
0.00
0.02
0.03
0.01
0.21
0.02
0.01

1.78
1.84
1.85
1.85
1.90
1.92
1.96
1.97
1.98
1.99
2.00
2.02
2.04
2.13
2.15
2.16
2.19
2.22
2.24
2.24
2.37
2.43
2.44
2.46
2.50
2.52
2.55
2.61
2.63
2.64
2.67
2.68
2.69
2.73
2.85
2.85
2.86
2.98
3.05
3.05
3.09
3.10
3.10
3.12
3.15
3.16
3.37
3.39
3.40

1946 |
1948 |
1950 |
1951 |
1952 |
1953 |
1957 |
1961 |
1962 |
1963 |
1966 |
1968 |
1969 |
1970 |
1971 |
1973 |
1977 |
1978 |
1979 |
1980 |
1981 |
1983 |
1984 |
1988 |
1989 |
1990 |
1993 |
1994 |
1995 |
1996 |
1997 |
1998 |
1999 |
2001 |
2004 |
2006 |
2007 |
2009 |
2011 |
2012 |
2013 |
2016 |
2018 |
2020 |
2022 |
2024 |
2025 |
2026 |
2027 |

2
1
6
6
2
34
39
13
25
2
1
9
2
2
5
11
1
35
8
1
30
13
6
24
7
1
3
2
2
6
1
14
3
37
1
10
4
6
6
8
23
53
1
4
37
16
6
11
9

0.01
0.00
0.03
0.03
0.01
0.16
0.18
0.06
0.12
0.01
0.00
0.04
0.01
0.01
0.02
0.05
0.00
0.16
0.04
0.00
0.14
0.06
0.03
0.11
0.03
0.00
0.01
0.01
0.01
0.03
0.00
0.07
0.01
0.17
0.00
0.05
0.02
0.03
0.03
0.04
0.11
0.25
0.00
0.02
0.17
0.07
0.03
0.05
0.04

3.41
3.41
3.44
3.47
3.48
3.64
3.82
3.88
3.99
4.00
4.01
4.05
4.06
4.07
4.09
4.14
4.15
4.31
4.35
4.35
4.49
4.55
4.58
4.69
4.72
4.73
4.74
4.75
4.76
4.79
4.79
4.86
4.87
5.04
5.05
5.10
5.11
5.14
5.17
5.21
5.31
5.56
5.57
5.58
5.76
5.83
5.86
5.91
5.95

2030 |
2032 |
2034 |
2035 |
2038 |
2039 |
2040 |
2041 |
2042 |
2045 |
2047 |
2049 |
2051 |
2053 |
2054 |
2055 |
2056 |
2057 |
2059 |
2060 |
2064 |
2066 |
2067 |
2068 |
2069 |
2070 |
2071 |
2072 |
2073 |
2074 |
2077 |
2079 |
2081 |
2082 |
2083 |
2084 |
2085 |
2086 |
2087 |
2089 |
2092 |
2093 |
2094 |
2095 |
2096 |
2097 |
2099 |
2101 |
2102 |

17
1
11
14
10
12
37
46
10
6
4
4
5
14
3
26
2
32
14
1
79
4
2
11
1
17
15
50
3
6
8
1
3
1
36
53
22
2
6
9
1
2
10
15
13
1
11
8
1

0.08
0.00
0.05
0.07
0.05
0.06
0.17
0.21
0.05
0.03
0.02
0.02
0.02
0.07
0.01
0.12
0.01
0.15
0.07
0.00
0.37
0.02
0.01
0.05
0.00
0.08
0.07
0.23
0.01
0.03
0.04
0.00
0.01
0.00
0.17
0.25
0.10
0.01
0.03
0.04
0.00
0.01
0.05
0.07
0.06
0.00
0.05
0.04
0.00

6.03
6.04
6.09
6.15
6.20
6.25
6.43
6.64
6.69
6.71
6.73
6.75
6.77
6.84
6.85
6.97
6.98
7.13
7.20
7.20
7.57
7.59
7.60
7.65
7.65
7.73
7.80
8.03
8.05
8.08
8.11
8.12
8.13
8.14
8.30
8.55
8.65
8.66
8.69
8.73
8.74
8.75
8.79
8.86
8.92
8.93
8.98
9.02
9.02

2103 |
2104 |
2105 |
2107 |
2108 |
2110 |
2112 |
2114 |
2115 |
2116 |
2118 |
2119 |
2120 |
2121 |
2122 |
2123 |
2124 |
2125 |
2126 |
2129 |
2130 |
2131 |
2133 |
2134 |
2135 |
2136 |
2138 |
2140 |
2142 |
2144 |
2145 |
2146 |
2147 |
2148 |
2149 |
2150 |
2151 |
2153 |
--Break-r(1);

107
1
3
13
59
3
5
11
8
17
12
38
2
16
1
3
1
13
6
3
60
1
64
20
18
1
3
6
3
10
2
36
4
7
1
83
16
32

0.50
0.00
0.01
0.06
0.27
0.01
0.02
0.05
0.04
0.08
0.06
0.18
0.01
0.07
0.00
0.01
0.00
0.06
0.03
0.01
0.28
0.00
0.30
0.09
0.08
0.00
0.01
0.03
0.01
0.05
0.01
0.17
0.02
0.03
0.00
0.39
0.07
0.15

9.52
9.52
9.54
9.60
9.87
9.89
9.91
9.96
10.00
10.08
10.13
10.31
10.32
10.39
10.40
10.41
10.42
10.48
10.50
10.52
10.80
10.80
11.10
11.19
11.28
11.28
11.29
11.32
11.34
11.38
11.39
11.56
11.58
11.61
11.61
12.00
12.08
12.22

. rename a_bmi4 bmi


. . reg bmi ageyrs
Source |
SS
df
MS
Number of obs = 21158
-------------+-----------------------------F( 1, 21156) = 7.54
Model | 21316901 1 21316901
Prob > F = 0.0060
Residual | 5.9828e+10 21156 2827928.29
R-squared = 0.0004

-------------+-----------------------------Adj R-squared = 0.0003


Total | 5.9849e+10 21157 2828802.18
Root MSE = 1681.6
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------ageyrs | -1.83399 .6679888 -2.75 0.006 -3.143299 -.5246814
_cons | 3176.404 38.31563 82.90 0.000 3101.302 3251.506
-----------------------------------------------------------------------------. reg bmi ageyrs race i.female fv smokes drinkok educa
Source |
SS
df
MS
Number of obs = 19875
-------------+-----------------------------F( 7, 19867) = 59.89
Model | 1.0779e+09 7 153978654
Prob > F = 0.0000
Residual | 5.1078e+10 19867 2570984.46
R-squared = 0.0207
-------------+-----------------------------Adj R-squared = 0.0203
Total | 5.2156e+10 19874 2624313.12
Root MSE = 1603.4
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------ageyrs | -3.564429 .7167285 -4.97 0.000 -4.969277 -2.159581
race | 59.08203 13.92386 4.24 0.000 31.7901 86.37397
1.female | 262.2789 24.14528 10.86 0.000 214.9521 309.6056
fv | -92.14504 25.93736 -3.55 0.000 -142.9844 -41.30566
smokes | -174.8757 31.74086 -5.51 0.000 -237.0904 -112.6609
drinkok | 132.7462 33.77679 3.93 0.000 66.54084 198.9515
educa | -128.6232 10.8724 -11.83 0.000 -149.9341 -107.3124
_cons | 3565.806 87.34541 40.82 0.000 3394.602 3737.01
-----------------------------------------------------------------------------. reg bmi i.female
Source |
SS
df
MS
Number of obs = 21507
-------------+-----------------------------F( 1, 21505) = 180.02
Model | 550407573 1 550407573
Prob > F = 0.0000
Residual | 6.5750e+10 21505 3057450.69
R-squared = 0.0083
-------------+-----------------------------Adj R-squared = 0.0083
Total | 6.6301e+10 21506 3082901.73
Root MSE = 1748.6
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------1.female | 334.5541 24.93468 13.42 0.000 285.6803 383.4279
_cons | 2897.355 20.04282 144.56 0.000 2858.07 2936.64
-----------------------------------------------------------------------------. geb bmi=a_bmi4/100

unrecognized command: geb


r(199);
. gen bmi=a_bmi4/100
bmi already defined
r(110);
. replace bmi=.if bmi <15| bmi >65
.if invalid name
r(198);
. recode race (2=1) (1=0) (3=0), gen(non hispanic)
the number of new and transformed varnames should be the same
r(198);
. reg bmi i.race
Source |
SS
df
MS
Number of obs = 21249
-------------+-----------------------------F( 3, 21245) = 40.06
Model | 359593004 3 119864335
Prob > F = 0.0000
Residual | 6.3568e+10 21245 2992133.79
R-squared = 0.0056
-------------+-----------------------------Adj R-squared = 0.0055
Total | 6.3927e+10 21248 3008634.95
Root MSE = 1729.8
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------race |
2 | 240.1951 57.23262 4.20 0.000 128.0149 352.3754
3 | -50.77748 60.53065 -0.84 0.402 -169.4221 67.86717
4 | 453.8032 44.27384 10.25 0.000 367.0231 540.5832
|
_cons | 3057.388 12.97983 235.55 0.000 3031.947 3082.83
-----------------------------------------------------------------------------. reg bmi #c.race
# invalid name
r(198);
. reg bmi#c.race
depvar may not be an interaction
r(198);
. reg bmi race
Source |
SS
df
MS
Number of obs = 21249
-------------+-----------------------------F( 1, 21247) = 86.44
Model | 259015004 1 259015004
Prob > F = 0.0000
Residual | 6.3668e+10 21247 2996585.89
R-squared = 0.0041

-------------+-----------------------------Adj R-squared = 0.0040


Total | 6.3927e+10 21248 3008634.95
Root MSE = 1731.1
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------race | 124.772 13.42047 9.30 0.000 98.46681 151.0771
_cons | 2931.996 21.79376 134.53 0.000 2889.279 2974.714
-----------------------------------------------------------------------------. reg bmi i.smokes
Source |
SS
df
MS
Number of obs = 21420
-------------+-----------------------------F( 1, 21418) = 11.19
Model | 34314064.5 1 34314064.5
Prob > F = 0.0008
Residual | 6.5658e+10 21418 3065539.65
R-squared = 0.0005
-------------+-----------------------------Adj R-squared = 0.0005
Total | 6.5692e+10 21419 3066998.56
Root MSE = 1750.9
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------1.smokes | -107.361 32.08958 -3.35 0.001 -170.259 -44.46305
_cons | 3128.884 13.10602 238.74 0.000 3103.195 3154.573
-----------------------------------------------------------------------------. recode smokes (1=0) (0=1), gen yes
option gen incorrectly specified
r(198);
. recode smokes (1=0) (0=1), gen(yes)
(21420 differences between smokes and yes)
. recode smokes (1=0) (0=1), gen(no)
(21420 differences between smokes and no)
. reg bmi i.smokes
Source |
SS
df
MS
Number of obs = 21420
-------------+-----------------------------F( 1, 21418) = 11.19
Model | 34314064.5 1 34314064.5
Prob > F = 0.0008
Residual | 6.5658e+10 21418 3065539.65
R-squared = 0.0005
-------------+-----------------------------Adj R-squared = 0.0005
Total | 6.5692e+10 21419 3066998.56
Root MSE = 1750.9
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------1.smokes | -107.361 32.08958 -3.35 0.001 -170.259 -44.46305

_cons | 3128.884 13.10602 238.74 0.000 3103.195 3154.573


-----------------------------------------------------------------------------. recode smoker (1=1) (0=0), gen(smoker)
smoker already defined
r(110);
. recode smoker (1=1) (0=0), gen(smokes)
smokes already defined
r(110);
. recode smoker (1=1) (0=0), gen(smokesgroup)
(0 differences between smoker and smokesgroup)
. recode smoker (1=1) (0=0), gen(notsmokegroup)
(0 differences between smoker and notsmokegroup)
. reg bmi i.smoker
Source |
SS
df
MS
Number of obs = 21427
-------------+-----------------------------F( 1, 21425) = 9.42
Model | 28898635.5 1 28898635.5
Prob > F = 0.0021
Residual | 6.5715e+10 21425 3067197.44
R-squared = 0.0004
-------------+-----------------------------Adj R-squared = 0.0004
Total | 6.5744e+10 21426 3068403.05
Root MSE = 1751.3
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------1.smoker | -73.45169 23.92952 -3.07 0.002 -120.3553 -26.54804
_cons | 3147.511 16.85307 186.76 0.000 3114.478 3180.544
-----------------------------------------------------------------------------. recode educa (1=1) (2=1) (3=1) (4=2) (5=3) (6-4) (9=.), gen(edgroup)
unknown el 6-4 in rule
r(198);
. recode educa (1=1) (2=1) (3=1) (4=2) (5=3) (6=4) (9=.), gen(edgroup)
(21457 differences between educa and edgroup)
. reg bmi i.educa
Source |
SS
df
MS
Number of obs = 21507
-------------+-----------------------------F( 6, 21500) = 40.59
Model | 742626108 6 123771018
Prob > F = 0.0000
Residual | 6.5558e+10 21500 3049221.33
R-squared = 0.0112
-------------+-----------------------------Adj R-squared = 0.0109
Total | 6.6301e+10 21506 3082901.73
Root MSE = 1746.2

-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]


-------------+---------------------------------------------------------------educa |
2 | -1323.063 254.2972 -5.20 0.000 -1821.504 -824.6213
3 | -1746.973 252.0679 -6.93 0.000 -2241.044 -1252.901
4 | -1749.544 248.0016 -7.05 0.000 -2235.646 -1263.443
5 | -1794.174 248.2139 -7.23 0.000 -2280.692 -1307.657
6 | -1985.072 247.6632 -8.02 0.000 -2470.51 -1499.633
9 | -467.8691 341.2108 -1.37 0.170 -1136.668 200.9295
|
_cons | 4943.96 246.9503 20.02 0.000 4459.919 5428.001
-----------------------------------------------------------------------------. tab educa
education |
level | Freq. Percent
Cum.
------------+----------------------------------1|
50
0.23
0.23
2|
828
3.85
4.08
3 | 1,194
5.55
9.63
4 | 5,860
27.25
36.88
5 | 4,873
22.66
59.54
6 | 8,647
40.21
99.74
9|
55
0.26 100.00
------------+----------------------------------Total | 21,507 100.00
. gen race=a_racegr2
race already defined
r(110);
. capture drop race
. gen race=a_racegr2
. replace race=.if a_racegr2==9
.if invalid name
r(198);
. replace race=. if a_racegr2==9
(258 real changes made, 258 to missing)
. reg bmi i.race
Source |
SS
df
MS
Number of obs = 21249
-------------+-----------------------------F( 4, 21244) = 30.68
Model | 367196959 4 91799239.8
Prob > F = 0.0000

Residual | 6.3560e+10 21244 2991916.71


R-squared = 0.0057
-------------+-----------------------------Adj R-squared = 0.0056
Total | 6.3927e+10 21248 3008634.95
Root MSE = 1729.7
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------race |
2 | 240.1951 57.23054 4.20 0.000 128.0189 352.3713
3 | -99.41213 67.78183 -1.47 0.142 -232.2696 33.44538
4 | 131.8727 129.5771 1.02 0.309 -122.1083 385.8536
5 | 453.8032 44.27223 10.25 0.000 367.0262 540.5801
|
_cons | 3057.388 12.97936 235.56 0.000 3031.948 3082.829
-----------------------------------------------------------------------------. tab a_racegr2
computed |
five level |
race/ethnic |
ity categ | Freq. Percent
Cum.
------------+----------------------------------1 | 17,760
82.58
82.58
2|
963
4.48
87.06
3|
676
3.14
90.20
4|
180
0.84
91.04
5 | 1,670
7.76
98.80
9|
258
1.20 100.00
------------+----------------------------------Total | 21,507 100.00
. capture drop smoker
. gen smoker=smokerss
smokerss not found
r(111);
. gen smokers=smokers
smokers not found
r(111);
. gen smokers=smokes
(87 missing values generated)
. reg bmi i.smokers
Source |
SS
df
MS
Number of obs = 21420
-------------+-----------------------------F( 1, 21418) = 11.19

Model | 34314064.5 1 34314064.5


Prob > F = 0.0008
Residual | 6.5658e+10 21418 3065539.65
R-squared = 0.0005
-------------+-----------------------------Adj R-squared = 0.0005
Total | 6.5692e+10 21419 3066998.56
Root MSE = 1750.9
-----------------------------------------------------------------------------bmi | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+---------------------------------------------------------------1.smokers | -107.361 32.08958 -3.35 0.001 -170.259 -44.46305
_cons | 3128.884 13.10602 238.74 0.000 3103.195 3154.573
-----------------------------------------------------------------------------. capture drop bmi
. capture drop race
. capture drop edgroup
. gen bmi=a_bmi4/100
. replace bmi=. if bmi < 15 | bmi >65
(21507 real changes made, 21507 to missing)
. tab1 age a_racegr2 female fv smokes drinkok educa, missing
-> tabulation of age
reported |
age in |
years | Freq. Percent
Cum.
------------+----------------------------------18 |
127
0.59
0.59
19 |
92
0.43
1.02
20 |
96
0.45
1.46
21 |
70
0.33
1.79
22 |
120
0.56
2.35
23 |
110
0.51
2.86
24 |
140
0.65
3.51
25 |
127
0.59
4.10
26 |
157
0.73
4.83
27 |
179
0.83
5.66
28 |
200
0.93
6.59
29 |
177
0.82
7.42
30 |
244
1.13
8.55
31 |
228
1.06
9.61
32 |
267
1.24
10.85
33 |
254
1.18
12.03
34 |
252
1.17
13.21
35 |
326
1.52
14.72

36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |

329
343
350
359
385
324
384
404
377
415
404
420
393
369
535
356
446
412
431
473
460
411
410
444
501
311
387
362
411
410
353
335
307
259
323
292
288
263
269
299
264
249
243
246
293
255
254
195
173

1.53
1.59
1.63
1.67
1.79
1.51
1.79
1.88
1.75
1.93
1.88
1.95
1.83
1.72
2.49
1.66
2.07
1.92
2.00
2.20
2.14
1.91
1.91
2.06
2.33
1.45
1.80
1.68
1.91
1.91
1.64
1.56
1.43
1.20
1.50
1.36
1.34
1.22
1.25
1.39
1.23
1.16
1.13
1.14
1.36
1.19
1.18
0.91
0.80

16.25
17.85
19.47
21.14
22.93
24.44
26.22
28.10
29.86
31.79
33.66
35.62
37.44
39.16
41.65
43.30
45.38
47.29
49.30
51.49
53.63
55.54
57.45
59.52
61.84
63.29
65.09
66.77
68.68
70.59
72.23
73.79
75.22
76.42
77.92
79.28
80.62
81.84
83.09
84.48
85.71
86.87
88.00
89.14
90.51
91.69
92.87
93.78
94.58

85 |
175
0.81
95.40
86 |
142
0.66
96.06
87 |
116
0.54
96.60
88 |
103
0.48
97.08
89 |
71
0.33
97.41
90 |
57
0.27
97.67
91 |
40
0.19
97.86
92 |
27
0.13
97.98
93 |
26
0.12
98.10
94 |
20
0.09
98.20
95 |
14
0.07
98.26
96 |
5
0.02
98.28
97 |
2
0.01
98.29
98 |
2
0.01
98.30
99 |
16
0.07
98.38
.|
349
1.62 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of a_racegr2
computed |
five level |
race/ethnic |
ity categ | Freq. Percent
Cum.
------------+----------------------------------1 | 17,760
82.58
82.58
2|
963
4.48
87.06
3|
676
3.14
90.20
4|
180
0.84
91.04
5 | 1,670
7.76
98.80
9|
258
1.20 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of female
RECODE of |
sex |
(respondent |
s sex) | Freq. Percent
Cum.
------------+----------------------------------0 | 7,611
35.39
35.39
1 | 13,896
64.61 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of fv

RECODE of |
a_fv5srv |
(consumed |
five or |
more |
servings of |
fruits) | Freq. Percent
Cum.
------------+----------------------------------0 | 15,194
70.65
70.65
1 | 5,768
26.82
97.47
.|
545
2.53 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of smokes
RECODE of |
a_smoker3 |
(computed |
smoking |
status) | Freq. Percent
Cum.
------------+----------------------------------0 | 17,847
82.98
82.98
1 | 3,573
16.61
99.60
.|
87
0.40 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of drinkok
drinkok | Freq. Percent
Cum.
------------+----------------------------------0 | 2,933
13.64
13.64
1 | 17,825
82.88
96.52
.|
749
3.48 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of educa
education |
level | Freq. Percent
Cum.
------------+----------------------------------1|
50
0.23
0.23
2|
828
3.85
4.08
3 | 1,194
5.55
9.63
4 | 5,860
27.25
36.88
5 | 4,873
22.66
59.54
6 | 8,647
40.21
99.74

9|
55
0.26 100.00
------------+----------------------------------Total | 21,507 100.00
. capture drop a_racegr2
. gen racecat=a_racegr2
a_racegr2 not found
r(111);
. gen racecat=a_racegr2
a_racegr2 not found
r(111);
. reg bmi age i.racecat female fv smokes drinkok i.edgroup
variable racecat not found
r(111);
. reg bmi age a_racegr2 female fv smokes drinkok i.edgroup
variable a_racegr2 not found
r(111);
. capture drop a_racegr2
. gen racecat= a_racegr2
a_racegr2 not found
r(111);
. gen racecat=a_raceg2
. reg bmi age i.racecat female fv smokes drinkok i.edgroup
variable edgroup not found
r(111);
. capture drop educa
. gen edgroup=educa
educa not found
r(111);
. gen edgroup= educa
educa not found
r(111);
. gen edgroup= edcat
(55 missing values generated)
. reg bmi age i.racecat female fv smokes drinkok i.edcat
no observations

r(2000);
. tab1 age racecat female fv smokes drinkok edcat, missing
-> tabulation of age
reported |
age in |
years | Freq. Percent
Cum.
------------+----------------------------------18 |
127
0.59
0.59
19 |
92
0.43
1.02
20 |
96
0.45
1.46
21 |
70
0.33
1.79
22 |
120
0.56
2.35
23 |
110
0.51
2.86
24 |
140
0.65
3.51
25 |
127
0.59
4.10
26 |
157
0.73
4.83
27 |
179
0.83
5.66
28 |
200
0.93
6.59
29 |
177
0.82
7.42
30 |
244
1.13
8.55
31 |
228
1.06
9.61
32 |
267
1.24
10.85
33 |
254
1.18
12.03
34 |
252
1.17
13.21
35 |
326
1.52
14.72
36 |
329
1.53
16.25
37 |
343
1.59
17.85
38 |
350
1.63
19.47
39 |
359
1.67
21.14
40 |
385
1.79
22.93
41 |
324
1.51
24.44
42 |
384
1.79
26.22
43 |
404
1.88
28.10
44 |
377
1.75
29.86
45 |
415
1.93
31.79
46 |
404
1.88
33.66
47 |
420
1.95
35.62
48 |
393
1.83
37.44
49 |
369
1.72
39.16
50 |
535
2.49
41.65
51 |
356
1.66
43.30
52 |
446
2.07
45.38
53 |
412
1.92
47.29
54 |
431
2.00
49.30
55 |
473
2.20
51.49
56 |
460
2.14
53.63

57 |
411
1.91
55.54
58 |
410
1.91
57.45
59 |
444
2.06
59.52
60 |
501
2.33
61.84
61 |
311
1.45
63.29
62 |
387
1.80
65.09
63 |
362
1.68
66.77
64 |
411
1.91
68.68
65 |
410
1.91
70.59
66 |
353
1.64
72.23
67 |
335
1.56
73.79
68 |
307
1.43
75.22
69 |
259
1.20
76.42
70 |
323
1.50
77.92
71 |
292
1.36
79.28
72 |
288
1.34
80.62
73 |
263
1.22
81.84
74 |
269
1.25
83.09
75 |
299
1.39
84.48
76 |
264
1.23
85.71
77 |
249
1.16
86.87
78 |
243
1.13
88.00
79 |
246
1.14
89.14
80 |
293
1.36
90.51
81 |
255
1.19
91.69
82 |
254
1.18
92.87
83 |
195
0.91
93.78
84 |
173
0.80
94.58
85 |
175
0.81
95.40
86 |
142
0.66
96.06
87 |
116
0.54
96.60
88 |
103
0.48
97.08
89 |
71
0.33
97.41
90 |
57
0.27
97.67
91 |
40
0.19
97.86
92 |
27
0.13
97.98
93 |
26
0.12
98.10
94 |
20
0.09
98.20
95 |
14
0.07
98.26
96 |
5
0.02
98.28
97 |
2
0.01
98.29
98 |
2
0.01
98.30
99 |
16
0.07
98.38
.|
349
1.62 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of racecat

racecat | Freq. Percent


Cum.
------------+----------------------------------1 | 17,760
82.58
82.58
2 | 3,489
16.22
98.80
9|
258
1.20 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of female
RECODE of |
sex |
(respondent |
s sex) | Freq. Percent
Cum.
------------+----------------------------------0 | 7,611
35.39
35.39
1 | 13,896
64.61 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of fv
RECODE of |
a_fv5srv |
(consumed |
five or |
more |
servings of |
fruits) | Freq. Percent
Cum.
------------+----------------------------------0 | 15,194
70.65
70.65
1 | 5,768
26.82
97.47
.|
545
2.53 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of smokes
RECODE of |
a_smoker3 |
(computed |
smoking |
status) | Freq. Percent
Cum.
------------+----------------------------------0 | 17,847
82.98
82.98
1 | 3,573
16.61
99.60
.|
87
0.40 100.00
------------+----------------------------------Total | 21,507 100.00

-> tabulation of drinkok


drinkok | Freq. Percent
Cum.
------------+----------------------------------0 | 2,933
13.64
13.64
1 | 17,825
82.88
96.52
.|
749
3.48 100.00
------------+----------------------------------Total | 21,507 100.00
-> tabulation of edcat
edcat | Freq. Percent
Cum.
------------+----------------------------------1 | 2,072
9.63
9.63
2 | 5,860
27.25
36.88
3 | 4,873
22.66
59.54
4 | 8,647
40.21
99.74
.|
55
0.26 100.00
------------+----------------------------------Total | 21,507 100.00
. reg bmi age i.racecat female fv smokes drinkok i.edcat
no observations
r(2000);
. reg bmi i.racecat
no observations
r(2000);
. list racecat
+---------+
| racecat |
|---------|
1. |
1|
2. |
1|
3. |
1|
4. |
1|
5. |
1|
|---------|
6. |
1|
7. |
1|
8. |
1|
9. |
2|
10. |
1|
|---------|
11. |
1|

12. |
2|
13. |
1|
14. |
1|
15. |
1|
|---------|
16. |
2|
17. |
1|
18. |
1|
19. |
1|
20. |
2|
|---------|
21. |
2|
22. |
2|
23. |
1|
24. |
2|
25. |
1|
|---------|
26. |
1|
27. |
1|
28. |
1|
29. |
1|
30. |
1|
|---------|
31. |
2|
32. |
1|
33. |
1|
34. |
1|
35. |
1|
|---------|
36. |
1|
37. |
1|
38. |
1|
39. |
1|
40. |
1|
|---------|
41. |
1|
42. |
1|
43. |
1|
44. |
1|
45. |
1|
|---------|
46. |
2|
47. |
1|
48. |
1|
49. |
1|
50. |
1|
|---------|
51. |
2|
52. |
1|

53. |
1|
54. |
1|
55. |
1|
|---------|
56. |
1|
57. |
1|
58. |
1|
59. |
2|
60. |
1|
|---------|
61. |
2|
62. |
1|
63. |
1|
64. |
1|
65. |
1|
|---------|
66. |
1|
67. |
1|
68. |
1|
69. |
1|
70. |
1|
|---------|
71. |
2|
72. |
1|
73. |
2|
74. |
1|
75. |
1|
|---------|
76. |
1|
77. |
1|
78. |
2|
79. |
1|
80. |
1|
|---------|
81. |
1|
82. |
1|
83. |
2|
84. |
1|
85. |
1|
|---------|
86. |
2|
87. |
2|
88. |
2|
89. |
2|
90. |
9|
|---------|
91. |
1|
92. |
1|
--Break--

r(1);
. tab pregnant
pregnancy |
status | Freq. Percent
Cum.
------------+----------------------------------1|
149
3.38
3.38
2 | 4,230
96.07
99.45
7|
14
0.32
99.77
9|
10
0.23 100.00
------------+----------------------------------Total | 4,403 100.00
. tab pregnant, missing
pregnancy |
status | Freq. Percent
Cum.
------------+----------------------------------1|
149
0.69
0.69
2 | 4,230
19.67
20.36
7|
14
0.07
20.43
9|
10
0.05
20.47
. | 17,104
79.53 100.00
------------+----------------------------------Total | 21,507 100.00
. tab female
RECODE of |
sex |
(respondent |
s sex) | Freq. Percent
Cum.
------------+----------------------------------0 | 7,611
35.39
35.39
1 | 13,896
64.61 100.00
------------+----------------------------------Total | 21,507 100.00
. ladder
varlist required
r(100);
. gladder
varlist required
r(100);
. gladder female

. gladder bmi
insufficient observations
r(2001);
. gladder a_bmi4cat
. tab inclevel
inclevel | Freq. Percent
Cum.
------------+----------------------------------1|
934
5.16
5.16
2 | 1,132
6.26
11.42
3 | 1,329
7.35
18.77
4 | 1,481
8.19
26.96
5 | 1,853
10.25
37.21
6 | 2,425
13.41
50.61
7 | 2,925
16.17
66.79
8 | 6,007
33.21 100.00
------------+----------------------------------Total | 18,086 100.00
. graph bar bmi, over(incelvel)
variable incelvel not found
r(111);
. graph bar (mean) bmi, over(incelvel)
variable incelvel not found
r(111);
. graph bar (mean) bmi, over(inclevel)
. graph bar (mean)bmi, over(agecat)
variable agecat not found
r(111);
. graph bar (mean)bmi, over(age)
. graph bar (mean)bmi, over(a_ageg)
. tab age missing
variable missing not found
r(111);
. tab age
reported |
age in |
years | Freq. Percent
Cum.
------------+-----------------------------------

18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |

127
92
96
70
120
110
140
127
157
179
200
177
244
228
267
254
252
326
329
343
350
359
385
324
384
404
377
415
404
420
393
369
535
356
446
412
431
473
460
411
410
444
501
311
387
362
411
410
353

0.60
0.43
0.45
0.33
0.57
0.52
0.66
0.60
0.74
0.85
0.95
0.84
1.15
1.08
1.26
1.20
1.19
1.54
1.55
1.62
1.65
1.70
1.82
1.53
1.81
1.91
1.78
1.96
1.91
1.99
1.86
1.74
2.53
1.68
2.11
1.95
2.04
2.24
2.17
1.94
1.94
2.10
2.37
1.47
1.83
1.71
1.94
1.94
1.67

0.60
1.04
1.49
1.82
2.39
2.91
3.57
4.17
4.91
5.76
6.70
7.54
8.69
9.77
11.03
12.23
13.42
14.96
16.52
18.14
19.79
21.49
23.31
24.84
26.66
28.57
30.35
32.31
34.22
36.20
38.06
39.81
42.33
44.02
46.12
48.07
50.11
52.34
54.52
56.46
58.40
60.50
62.87
64.34
66.16
67.88
69.82
71.76
73.42

67 |
335
1.58
75.01
68 |
307
1.45
76.46
69 |
259
1.22
77.68
70 |
323
1.53
79.21
71 |
292
1.38
80.59
72 |
288
1.36
81.95
73 |
263
1.24
83.19
74 |
269
1.27
84.46
75 |
299
1.41
85.88
76 |
264
1.25
87.13
77 |
249
1.18
88.30
78 |
243
1.15
89.45
79 |
246
1.16
90.61
80 |
293
1.38
92.00
81 |
255
1.21
93.20
82 |
254
1.20
94.40
83 |
195
0.92
95.33
84 |
173
0.82
96.14
85 |
175
0.83
96.97
86 |
142
0.67
97.64
87 |
116
0.55
98.19
88 |
103
0.49
98.68
89 |
71
0.34
99.01
90 |
57
0.27
99.28
91 |
40
0.19
99.47
92 |
27
0.13
99.60
93 |
26
0.12
99.72
94 |
20
0.09
99.82
95 |
14
0.07
99.88
96 |
5
0.02
99.91
97 |
2
0.01
99.91
98 |
2
0.01
99.92
99 |
16
0.08 100.00
------------+----------------------------------Total | 21,158 100.00
. replace bmi=.
(0 real changes made)
.

Potrebbero piacerti anche