My first xtreg?

3
Friday February 21 23:05:00 2014 Page 1 ___ ____ ____ ____ ____(R) /__ / ____/ / ____/ ___/ / /___/ / /___/ Statistics/Data Analysis User: José Bayoán Santiago Calderón{space -7} _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ( R ) / _ _ / _ _ _ _ / / _ _ _ _ / _ _ _ / / / _ _ _ / / / _ _ _ / 1 3 . 1 Copyright 1985-2013 StataCorp LP S t a t i s t i c s / D a t a A n a l y s i s StataCorp 4905 Lakeway Drive College Station, Texas 77845 USA 800-STATA-PC http://www.stata.com 979-696-4600 [email protected] 979-696-4601 (fax) Single-user Stata perpetual license: Serial number: 301306217550 Licensed to: Jose Bayoan Santiago Calderon Southwestern University Notes: 1 . log using "C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Logs\x name: < u n n a m e d > log: C : \ U s e r s \ N o s f e r i c a n \ D o c u m e n t s \ U n i v e r s i d a d \ 1 4 _ S P \ E c o n C a p s t o n e \ C a p s t o n e p r o j e c t \ L o g s \ x log type: s m c l opened on: 2 1 F e b 2 0 1 4 , 2 3 : 0 3 : 0 0 2 . do "C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Logs\xtset.do 3 . clear 4 . 5 . use "C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Data\Prefina > nel [Think this is it].dta" 6 . 7 . describe Contains data from C : \ U s e r s \ N o s f e r i c a n \ D o c u m e n t s \ U n i v e r s i d a d \ 1 4 _ S P \ E c o n C a p s t o n e \ C a p s t o n e p r o j e c t \ > o n v e r t t o p a n e l [ T h i n k t h i s i s i t ] . d t a obs: 1 , 7 8 0 vars: 1 9 2 1 F e b 2 0 1 4 2 2 : 2 2 size: 1 8 5 , 1 2 0 storage display value variable name type format label variable label f i p s double %9.0g F e d e r a l I n f o r m a t i o n P r o c e s s i n g S t a n d a r d s C o d e f v c float %9.0g P e r c e n t a g e o f C o m p l i a n c e w i t h R e c o m m e n d a t i o n i n t h e d i a b e t i c float %9.0g P e r c e n t a g e o f D i a b e t i c s i n t h e C o u n t y o b e s e float %9.0g P e r c e n t a g e o f O b e s i t y i n t h e C o u n t y m a l e float %9.0g P e r c e n t a g e o f M a l e s i n t h e C o u n t y p h y a c t float %9.0g P e r c e n t a g e o f P h y s i c a l A c t i v e i n t h e C o u n t y s m k float %9.0g P e r c e n t a g e o f S m o k e r s i n t h e C o u n t y w h i t e float %9.0g P e r c e n t a g e o f W h i t e s i n t h e C o u n t y b l a c k float %9.0g P e r c e n t a g e o f B l a c k s i n t h e C o u n t y h i s p a n i c float %9.0g P e r c e n t a g e o f H i s p a n i c s i n t h e C o u n t y o t h e r float %9.0g P e r c e n t a g e o f O t h e r s i n t h e C o u n t y i y e a r float %10.0g Y e a r o f I n t e r v i e w a g e double %10.0g A g e R e c o r d e d i n Y e a r s e d u c a double %10.0g M e d i a n L e v e l o f E d u c a t i o n i n c o m e double %10.0g M e d i a n L e v e l o f I n c o m e b m i double %10.0g M e d i a n B o d y M a s s I n d e x f v s double %10.0g M e d i a n S e r v i n g s o f F r u i t s a n d V e g e t a b l e s e m o s t a t e double %10.0g M e d i a n A v e r a g e D a y s o f P o o r M e n t a l H e a l t h c n r float %9.0g * C a n c e r I n c i d e n c e R a t e * indicated variables have notes Sorted by:

description

Come on people. Let me know if this is what I think it is.

Transcript of My first xtreg?

Page 1: My first xtreg?

Friday February 21 23:05:00 2014 Page 1

___ ____ ____ ____ ____(R) /__ / ____/ / ____/ ___/ / /___/ / /___/ Statistics/Data Analysis

User: José Bayoán Santiago Calderón{space -7}

___ ____ ____ ____ ____ (R) /__ / ____/ / ____/___/ / /___/ / /___/ 13.1 Copyright 1985-2013 StataCorp LP Statistics/Data Analysis StataCorp 4905 Lakeway Drive College Station, Texas 77845 USA 800-STATA-PC http://www.stata.com 979-696-4600 [email protected] 979-696-4601 (fax)

Single-user Stata perpetual license: Serial number: 301306217550 Licensed to: Jose Bayoan Santiago Calderon Southwestern University

Notes:

1 . log using "C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Logs\xt-capstone.smcl"

name: <unnamed> log: C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Logs\x log type: smcl opened on: 21 Feb 2014, 23:03:00

2 . do "C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Logs\xtset.do"

3 . clear

4 . 5 . use "C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Data\Prefinal\To convert to pa> nel [Think this is it].dta"

6 . 7 . describe

Contains data from C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\> onvert to panel [Think this is it].dta obs: 1,780 vars: 19 21 Feb 2014 22:22 size: 185,120

storage display valuevariable name type format label variable label

fips double %9.0g Federal Information Processing Standards Codefvc float %9.0g Percentage of Compliance with Recommendation in the diabetic float %9.0g Percentage of Diabetics in the Countyobese float %9.0g Percentage of Obesity in the Countymale float %9.0g Percentage of Males in the Countyphyact float %9.0g Percentage of Physical Active in the Countysmk float %9.0g Percentage of Smokers in the Countywhite float %9.0g Percentage of Whites in the Countyblack float %9.0g Percentage of Blacks in the Countyhispanic float %9.0g Percentage of Hispanics in the Countyother float %9.0g Percentage of Others in the Countyiyear float %10.0g Year of Interviewage double %10.0g Age Recorded in Yearseduca double %10.0g Median Level of Educationincome double %10.0g Median Level of Incomebmi double %10.0g Median Body Mass Indexfvs double %10.0g Median Servings of Fruits and Vegetablesemostate double %10.0g Median Average Days of Poor Mental Healthcnr float %9.0g * Cancer Incidence Rate * indicated variables have notes

Sorted by:

Page 2: My first xtreg?

Friday February 21 23:05:00 2014 Page 2

8 . 9 . sum

Variable Obs Mean Std. Dev. Min Max

fips 1780 25167.49 14179.06 6001 53073 fvc 1200 24.73452 8.396908 5.769231 76 diabetic 1780 5.353511 2.645058 0 16.90141 obese 1780 36.13458 13.09187 9.202454 76.36364 male 1780 40.6688 5.733889 21.05263 61.40351

phyact 1210 43.93567 9.089066 11.9403 69.04762 smk 1780 46.5486 8.342055 10.76923 67.17171 white 1780 80.34524 16.95841 13.88889 100 black 1780 7.751153 11.58811 0 64.36781 hispanic 1780 8.595793 11.95816 0 83.78378

other 1780 3.285438 4.36991 0 52.63158 iyear 1780 1997.645 1.871595 1994 2000 age 1780 43.68483 3.900404 32 65 educa 1780 4.699157 .5091345 4 6 income 1780 5.41882 .8355573 3 8

bmi 1780 25.44941 .8464743 23 28.9 fvs 1200 3.558171 .3361237 2.465 4.57 emostate 1780 7.368258 6.119402 1.5 30 cnr 1780 471.9926 56.67879 265.6 808.8

10 . 11 . egen panelid = group(fips iyear), label

12 . 13 . xtset panelid

panel variable: panelid (unbalanced)

14 . 15 . xtreg cnr fvs emostate bmi income educa age hispanic black white smk phyact male diabetic, robust

Random-effects GLS regression Number of obs = 1126Group variable: panelid Number of groups = 604

R-sq: within = . Obs per group: min = 1 between = 0.3720 avg = 1.9 overall = 0.3715 max = 4

Wald chi2(13) = 448.31corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000

(Std. Err. adjusted for 604 clusters in panelid)

Robust cnr Coef. Std. Err. z P>|z| [95% Conf. Interval]

fvs 22.36303 5.882666 3.80 0.000 10.83322 33.89284 emostate .4216654 .4030411 1.05 0.295 -.3682806 1.211611 bmi -3.556293 2.514707 -1.41 0.157 -8.485029 1.372442 income 2.722222 2.55596 1.07 0.287 -2.287367 7.731811 educa 6.756304 4.953072 1.36 0.173 -2.951539 16.46415 age .6253613 .6221528 1.01 0.315 -.5940358 1.844758 hispanic .0388597 .4142964 0.09 0.925 -.7731463 .8508657 black 1.51977 .439342 3.46 0.001 .6586759 2.380865 white 1.534412 .3693203 4.15 0.000 .8105578 2.258267 smk 1.964155 .2422359 8.11 0.000 1.489381 2.438929 phyact -1.144531 .3691373 -3.10 0.002 -1.868027 -.421035 male -.2154409 .3966334 -0.54 0.587 -.992828 .5619462 diabetic -.6342536 .8304736 -0.76 0.445 -2.261952 .9934448

Page 3: My first xtreg?

Friday February 21 23:05:00 2014 Page 3

_cons 240.5161 87.37561 2.75 0.006 69.26302 411.7691

sigma_u 45.485316 sigma_e 9.20016 rho .96069621 (fraction of variance due to u_i)

16 . end of do-file

17 . log close name: <unnamed> log: C:\Users\Nosferican\Documents\Universidad\14_SP\Econ Capstone\Capstone project\Logs\x log type: smcl closed on: 21 Feb 2014, 23:03:31

18 .