-------------------------------------------------------------------------------- log: C:\Documents and Settings\Patricia_Anderson\My Documents\ECON 20\In > Class\oct4.log log type: text opened on: 4 Oct 2002, 11:12:32 . reg salary sales ceoten mktval Source | SS df MS Number of obs = 177 -------------+------------------------------ F( 3, 173) = 14.53 Model | 12230632.6 3 4076877.52 Prob > F = 0.0000 Residual | 48535332.2 173 280551.053 R-squared = 0.2013 -------------+------------------------------ Adj R-squared = 0.1874 Total | 60765964.7 176 345261.163 Root MSE = 529.67 ------------------------------------------------------------------------------ salary | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- sales | .0190191 .0100561 1.89 0.060 -.0008294 .0388676 ceoten | 12.70337 5.618052 2.26 0.025 1.614616 23.79211 mktval | .0234003 .0094826 2.47 0.015 .0046839 .0421167 _cons | 613.4361 65.23685 9.40 0.000 484.6735 742.1987 ------------------------------------------------------------------------------ . **calculate a conf interval by hand . display .019 + (1.96*.01) .0386 . use saving, clear . desc Contains data from saving.dta obs: 100 vars: 7 13 Sep 2000 15:38 size: 1,400 (100.0% of memory free) ------------------------------------------------------------------------------- storage display value variable name type format label variable label ------------------------------------------------------------------------------- sav int %9.0g annual savings, $ (1970) inc int %9.0g annual income, $ (1970) size byte %9.0g family size educ byte %9.0g years education, household head age byte %9.0g age of household head black byte %9.0g =1 if household head is black cons int %9.0g annual consumption, $ (1970) ------------------------------------------------------------------------------- Sorted by: . reg cons inc Source | SS df MS Number of obs = 100 -------------+------------------------------ F( 1, 98) = 219.89 Model | 2.2480e+09 1 2.2480e+09 Prob > F = 0.0000 Residual | 1.0019e+09 98 10223460.8 R-squared = 0.6917 -------------+------------------------------ Adj R-squared = 0.6886 Total | 3.2499e+09 99 32827569.0 Root MSE = 3197.4 ------------------------------------------------------------------------------ cons | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- inc | .8533717 .0575488 14.83 0.000 .739168 .9675753 _cons | -124.8424 655.3931 -0.19 0.849 -1425.449 1175.764 ------------------------------------------------------------------------------ . **calculate our own t to test if beta=1 . (.853-1)/.058 unrecognized command: ( invalid command name r(199); . display (.853-1)/.058 -2.5344828 . display ttail(98,2.53) .00649984 . **2 show that this is one-sided use 1.96 . display ttail(10000, 1.96) .02501176 . display ttail(98,2.53)*2 .01299969 . log, close , invalid r(198); . log close log: C:\Documents and Settings\Patricia_Anderson\My Documents\ECON 20\I > nClass\oct4.log log type: text closed on: 4 Oct 2002, 12:19:44 -------------------------------------------------------------------------------