Stata11 whitepapers mwp-037 regress - regress regress. regress mpg weight foreign Source SS df MS Number of obs = 74 F(

Similar documents
BR001

Stata 11 whitepaper mwp 4 mwp mwp-028 / 41 mwp mwp mwp-079 functions 72 mwp-076 insheet 89 mwp-030 recode 94 mwp-033 reshape wide

Stata 11 Stata ts (ARMA) ARCH/GARCH whitepaper mwp 3 mwp-083 arch ARCH 11 mwp-051 arch postestimation 27 mwp-056 arima ARMA 35 mwp-003 arima postestim

Stata 11 Stata ROC whitepaper mwp anova/oneway 3 mwp-042 kwallis Kruskal Wallis 28 mwp-045 ranksum/median / 31 mwp-047 roctab/roccomp ROC 34 mwp-050 s

第11回:線形回帰モデルのOLS推定

ECCS. ECCS,. ( 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file e

% 10%, 35%( 1029 ) p (a) 1 p 95% (b) 1 Std. Err. (c) p 40% 5% (d) p 1: STATA (1). prtesti One-sample test of pr

卒業論文

第13回:交差項を含む回帰・弾力性の推定

最小2乗法

80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x

こんにちは由美子です

AR(1) y t = φy t 1 + ɛ t, ɛ t N(0, σ 2 ) 1. Mean of y t given y t 1, y t 2, E(y t y t 1, y t 2, ) = φy t 1 2. Variance of y t given y t 1, y t

1 Stata SEM LightStone 4 SEM 4.. Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press 3.

1 Stata SEM LightStone 3 2 SEM. 2., 2,. Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press.

Stata 11 Stata VAR VEC whitepaper mwp 4 mwp-084 var VAR 14 mwp-004 varbasic VAR 25 mwp-005 svar VAR 31 mwp-007 vec intro VEC 47 mwp-008 vec VEC 75 mwp

TS002

こんにちは由美子です

.. est table TwoSLS1 TwoSLS2 GMM het,b(%9.5f) se Variable TwoSLS1 TwoSLS2 GMM_het hi_empunion totchr

4 OLS 4 OLS 4.1 nurseries dual c dual i = c + βnurseries i + ε i (1) 1. OLS Workfile Quick - Estimate Equation OK Equation specification dual c nurser

28

k2 ( :35 ) ( k2) (GLM) web web 1 :

<4D F736F F D20939D8C7689F090CD985F93C18EEA8D758B E646F63>

Rによる計量分析:データ解析と可視化 - 第3回 Rの基礎とデータ操作・管理

事例研究(ミクロ経済政策・問題分析III) -規制産業と料金・価格制度-

こんにちは由美子です

1 Stata SEM LightStone 1 5 SEM Stata Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press. Introduc

4.9 Hausman Test Time Fixed Effects Model vs Time Random Effects Model Two-way Fixed Effects Model

kubostat2017c p (c) Poisson regression, a generalized linear model (GLM) : :

Microsoft Word - 計量研修テキスト_第5版).doc

untitled

(lm) lm AIC 2 / 1

1 y x y = α + x β+ε (1) x y (2) x y (1) (2) (1) y (2) x y (1) (2) y x y ε x 12 x y 3 3 β x β x 1 1 β 3 1

kubostat2018d p.2 :? bod size x and fertilization f change seed number? : a statistical model for this example? i response variable seed number : { i

s = 1.15 (s = 1.07), R = 0.786, R = 0.679, DW =.03 5 Y = 0.3 (0.095) (.708) X, R = 0.786, R = 0.679, s = 1.07, DW =.03, t û Y = 0.3 (3.163) + 0

Microsoft Word - 計量研修テキスト_第5版).doc

エクセルに出力します 推定結果の表は r(table) という行列で保存されますので matlist r(table) コマンドで 得られたの一覧を表示させます. use clear. regress

y i OLS [0, 1] OLS x i = (1, x 1,i,, x k,i ) β = (β 0, β 1,, β k ) G ( x i β) 1 G i 1 π i π i P {y i = 1 x i } = G (

yamadaiR(cEFA).pdf

kubostat2015e p.2 how to specify Poisson regression model, a GLM GLM how to specify model, a GLM GLM logistic probability distribution Poisson distrib

: (EQS) /EQUATIONS V1 = 30*V F1 + E1; V2 = 25*V *F1 + E2; V3 = 16*V *F1 + E3; V4 = 10*V F2 + E4; V5 = 19*V99

7 ( 7 ( Workfile Excel hatuden 1000kWh kion_average kion_max kion_min date holiday *1 obon 7.1 Workfile 1. Workfile File - New -

kubostat2017e p.1 I 2017 (e) GLM logistic regression : : :02 1 N y count data or

2 Tobin (1958) 2 limited dependent variables: LDV 2 corner solution 2 truncated censored x top coding censor from above censor from below 2 Heck

Stata User Group Meeting in Kyoto / ( / ) Stata User Group Meeting in Kyoto / 21

講義のーと : データ解析のための統計モデリング. 第3回

k3 ( :07 ) 2 (A) k = 1 (B) k = 7 y x x 1 (k2)?? x y (A) GLM (k

DAA09

講義のーと : データ解析のための統計モデリング. 第5回

Use R

一般化線形 (混合) モデル (2) - ロジスティック回帰と GLMM

untitled

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

こんにちは由美子です

kubostat2017b p.1 agenda I 2017 (b) probability distribution and maximum likelihood estimation :

10

R John Fox R R R Console library(rcmdr) Rcmdr R GUI Windows R R SDI *1 R Console R 1 2 Windows XP Windows * 2 R R Console R ˆ R

!!! 2!

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

Microsoft Word - 計量研修テキスト_第5版).doc

Presentation Title Goes Here

1 I EViews View Proc Freeze

Microsoft Word - 研究デザインと統計学.doc

DAA12

Stata13 Stata long/wide whitepaper mwp mcode import excel Excel / 4 mwp-092 import delimited 10 mwp-195 infix 17 mwp-031 infile 23 mwp-080 append 29 m

µ i ν it IN(0, σ 2 ) 1 i ȳ i = β x i + µ i + ν i (2) 12 y it ȳ i = β(x it x i ) + (ν it ν i ) (3) 3 β 1 µ i µ i = ȳ i β x i (4) (least square d

Microsoft Word - 計量研修テキスト_第5版).doc

計量経済分析 2011 年度夏学期期末試験 担当 : 別所俊一郎 以下のすべてに答えなさい. 回答は日本語か英語でおこなうこと. 1. 次のそれぞれの記述が正しいかどうか判定し, 誤りである場合には理由, あるいはより適切な 記述はどのようなものかを述べなさい. (1) You have to wo

Vol. 42 No pp Headcount ratio p p A B pp.29

H22 BioS (i) I treat1 II treat2 data d1; input group patno treat1 treat2; cards; ; run; I

GLM PROC GLM y = Xβ + ε y X β ε ε σ 2 E[ε] = 0 var[ε] = σ 2 I σ 2 0 σ 2 =... 0 σ 2 σ 2 I ε σ 2 y E[y] =Xβ var[y] =σ 2 I PROC GLM

1 15 R Part : website:

Vol.65 No.2 大阪大学経済学 September 2015 東日本大震災が大阪市の住宅価格に与えた影響について : 中古マンション価格を例にとって 保元大輔 谷﨑久志 要旨 JELR 1. はじめに Stata,, %.,

Microsoft Word - StatsDirectMA Web ver. 2.0.doc

151021slide.dvi

Microsoft Word - 計量研修テキスト_第5版).doc

σ t σ t σt nikkei HP nikkei4csv H R nikkei4<-readcsv("h:=y=ynikkei4csv",header=t) (1) nikkei header=t nikkei4csv 4 4 nikkei nikkei4<-dataframe(n

.3 ˆβ1 = S, S ˆβ0 = ȳ ˆβ1 S = (β0 + β1i i) β0 β1 S = (i β0 β1i) = 0 β0 S = (i β0 β1i)i = 0 β1 β0, β1 ȳ β0 β1 = 0, (i ȳ β1(i ))i = 0 {(i ȳ)(i ) β1(i ))

X X X Y R Y R Y R MCAR MAR MNAR Figure 1: MCAR, MAR, MNAR Y R X 1.2 Missing At Random (MAR) MAR MCAR MCAR Y X X Y MCAR 2 1 R X Y Table 1 3 IQ MCAR Y I

201711grade2.pdf

kubostat7f p GLM! logistic regression as usual? N? GLM GLM doesn t work! GLM!! probabilit distribution binomial distribution : : β + β x i link functi

第2回:データの加工・整理

7. フィリップス曲線 経済統計分析 (2014 年度秋学期 ) フィリップス曲線の推定 ( 経済理論との関連 ) フィリップス曲線とは何か? 物価と失業の関係 トレード オフ 政策運営 ( 財政 金融政策 ) への含意 ( 計量分析の手法 ) 関数形の選択 ( 関係が直線的でない場合の推定 ) 推

4 2 p = p(t, g) (1) r = r(t, g) (2) p r t g p r dp dt = p dg t + p g (3) dt dr dt = r dg t + r g dt 3 p t p g dt p t r t = Benefit view dp

第9回 日経STOCKリーグレポート 審査委員特別賞<地域の元気がでるで賞>

R Console >R ˆ 2 ˆ 2 ˆ Graphics Device 1 Rcmdr R Console R R Rcmdr Rcmdr Fox, 2007 Fox and Carvalho, 2012 R R 2

R分散分析06.indd

自由集会時系列part2web.key

9 1 (1) (2) (3) (4) (5) (1)-(5) (i) (i + 1) 4 (1) (2) (3) (4) (5) (1)-(2) (1)-(5) (5) 1

浜松医科大学紀要

3 HLM High School and Beyond HLM6 HLM6 C: Program Files HLM6S 2 C: Program MATHACH Files HLM6S Examples AppendxA school SECTOR Socio-Economic

Microsoft PowerPoint - TA報告(7)

1 2 Windows 7 *3 Windows * 4 R R Console R R Console ˆ R GUI R R R *5 R 2 R R R 6.1 ˆ 2 ˆ 2 ˆ Graphics Device 1 Rcmdr R Console R Rconsole R --sdi R M

The Effect of the Circumferential Temperature Change on the Change in the Strain Energy of Carbon Steel during the Rotatory Bending Fatigue Test by Ch

GNUPLOT GNUPLOT GNUPLOT 1 ( ) GNUPLO

J1順位と得点者数の関係分析

5.2 White

オーストラリア研究紀要 36号(P)☆/3.橋本

回帰分析 単回帰

(3) (5) (6) 162 青 山 充 て ん層 厚 さ と流 量 計 水 柱 高 さの 関係 を 示 した 付 属 チ ャ ー トに よ り直 ち に平 均 粒子 径 を知 る よ う にな って い る. しか し,試 料 重 量 を 変 え て実 験 す る場 合,チ ρp/w=1を ャー

Transcription:

mwp-037 regress - regress 1. 1.1 1.2 1.3 2. 3. 4. 5. 1. regress. regress mpg weight foreign Source SS df MS Number of obs = 74 F( 2, 71) = 69.75 Model 1619.2877 2 809.643849 Prob > F = 0.0000 Residual 824.171761 71 11.608053 R squared = 0.6627 Adj R squared = 0.6532 Total 2443.45946 73 33.4720474 Root MSE = 3.4071 mpg Coef. Std. Err. t P> t [95% Conf. Interval] weight.0065879.0006371 10.34 0.000.0078583.0053175 foreign 1.650029 1.075994 1.53 0.130 3.7955.4954422 _cons 41.6797 2.165547 19.25 0.000 37.36172 45.99768 c Copyright Math c Copyright StataCorp LP (used with permission) 1

Stata Example auto.dta mpg = β 0 + β 1 weight + β 2 foreign + ϵ Stata regress 1.1 regress1.dta 1,000 use http://www.math-koubou.jp/stata/data11/regress1.dta 5. list in 1/5 * 1 y x1 x2 x3 1. 25.4 49 3 3 2. 35.8 54 7 10 3. 36.2 73 9 6 4. 11.6 26 2 3 5. 16.8 45 8 3 y. generate y = 0.5*x1 + 2*x2-10 + rnormal(0, 10) x 1 x 2 rnormal(m, s) m s [D] functions y = 0.5x 1 + 2.0x 2 10 (1) x 1, x 2 x 3 y x 3 *1 Data Describe data List data 2

1.2 1,000 regress Statistics Linear models and related Linear regression Model : Dependent variable: y Independent variables: x1 x2 x3 1 regress - Model. regress y x1 x2 x3 Source SS df MS Number of obs = 1000 F( 3, 996) = 215.47 Model 63294.2507 3 21098.0836 Prob > F = 0.0000 Residual 97526.2879 996 97.9179598 R squared = 0.3936 Adj R squared = 0.3917 Total 160820.539 999 160.98152 Root MSE = 9.8954 y Coef. Std. Err. t P> t [95% Conf. Interval] x1.476147.0303301 15.70 0.000.4166288.5356652 x2 1.974713.1090362 18.11 0.000 1.760746 2.18868 x3.0072188.1083894 0.07 0.947.205479.2199165 _cons 8.906289 1.697041 5.25 0.000 12.23647 5.576103 (1) regress n(n 3) 2 rvfplot 3

. rvfplot, yline(0) * 2 (x 1i, x 2i,...) ŷ i y i y i ŷ i rvfplot (residual-versus-fitted plot) ŷ i 10 (2) R 2 regress regress ANOVA y SS (sum of squares) y i (i = 1,..., n) ȳ 2 y i ŷ i y (yi ȳ) 2 = (y i ŷ i ) 2 + (ŷ i ȳ) 2 (2) (yi ȳ) 2 TSS (total sum of squares) (ŷi ȳ) 2 MSS (model sum of squares) (yi ŷ i ) 2 RSS (residual sum of squares) TSS 160820.539 MSS 63294.2507 RSS 97526.2879 *2 Statistics Linear models and related Regression diagnostics Residual-versus-fitted plot 4

(coefficient of determination) R 2 = MSS TSS = 1 RSS TSS (3) 63294.2507/160820.539 = 0.3936 ANOVA R-squared 39% (3) p R-squared 1 p Prob > F (ANOVA: analysis of variance) F H 0 H 0 : β 1 = β 2 = = 0 β 0 (4) ANOVA Coef. (coefficients) β 1 = 0.48 β2 = 1.97 β3 = 0.01 β0 = 8.91 (1) (5) p p β j = 0 t p x 3 p 0.947 β 3 = 0 β 3 95% CI: confidence interval [ 0.21, 0.22] 0 x 3 x 1, x 2 p 0 regress p x 1 0.5 postestimation 1 test Statistics Postestimation Tests Test linear hypotheses Main : Test type for specification 1: Linear expressions are equal Specification 1, linear expression: x1 = 0.5 5

2 test - Main. test (x1 = 0.5) ( 1) x1 =.5 F( 1, 996) = 0.62 Prob > F = 0.4318 (6) Coef. (standard error) Std. Err. (standard deviation) x 1 95% CI (degrees of freedom) 996 t invttail(n, p) [D] functions. display invttail(996, 0.025) * 3 1.9623486 95% (critical value). display 0.476147-1.9623486*0.0303301.41662877. display 0.476147 + 1.9623486*0.0303301.53566523 x 1 95% CI [0.4166288, 0.5356652] *3 Data Other utilities Hand calculator 6

x 1, x 2 1.3 1.2 1,000 1/10 resampling seed seed. set seed 111 * 4 100. sample 100, count * 5 (900 observations deleted) 100 regress. regress y x1 x2 x3. regress y x1 x2 x3 Source SS df MS Number of obs = 100 F( 3, 96) = 15.43 Model 5157.47143 3 1719.15714 Prob > F = 0.0000 Residual 10693.3387 96 111.388945 R squared = 0.3254 Adj R squared = 0.3043 Total 15850.8101 99 160.109193 Root MSE = 10.554 y Coef. Std. Err. t P> t [95% Conf. Interval] x1.583658.1117937 5.22 0.000.3617492.8055668 x2 1.565079.3726188 4.20 0.000.8254362 2.304721 x3.1063396.3448411 0.31 0.758.7908438.5781646 _cons 12.28143 6.422559 1.91 0.059 25.03011.4672456 R 2 x 3 1.2 3 4 x 1 0.37 0.8 5% test *4 [R] set seed *5 Statistics Resampling Draw random sample 7

. test (x1 = 0.37). test (x1 = 0.37) ( 1) x1 =.37 F( 1, 96) = 3.65 Prob > F = 0.0590. test (x1 = 0.8). test (x1 = 0.8) ( 1) x1 =.8 F( 1, 96) = 3.74 Prob > F = 0.0559 p 0.05 (significance level) 5% Reporting Confidence level 3 2. Stata Example auto.dta. sysuse auto.dta * 6 (1978 Automobile Data) 1978 74 mpg (miles per gallon) weight 2 weight 2 2 c.weight#c.weight mwp-028. generate weightsq = weight^2 * 7 *6 File Example datasets Example datasets installed with Stata *7 Data Create or change data Create new variable 8

. format weightsq %10.0g * 8. list mpg weight weightsq in 1/5 * 9 mpg weight weightsq 1. 22 2,930 8584900 2. 17 3,350 11222500 3. 22 2,640 6969600 4. 20 3,250 10562500 5. 15 4,080 16646400 weight K 2 2. regress mpg weight weightsq * 10. regress mpg weight weightsq Source SS df MS Number of obs = 74 F( 2, 71) = 72.80 Model 1642.52197 2 821.260986 Prob > F = 0.0000 Residual 800.937487 71 11.2808097 R squared = 0.6722 Adj R squared = 0.6630 Total 2443.45946 73 33.4720474 Root MSE = 3.3587 mpg Coef. Std. Err. t P> t [95% Conf. Interval] weight.0141581.0038835 3.65 0.001.0219016.0064145 weightsq 1.32e 06 6.26e 07 2.12 0.038 7.67e 08 2.57e 06 _cons 51.18308 5.767884 8.87 0.000 39.68225 62.68392 mpg = 1.42e-2 weight + 1.32e-6 weight 2 + 51.18 mpg weight weight 2 10 4 weight 2 10 6 10 7 (normalize) 0 1 beta *8 Variables weightsq Format weightsq *9 Data Describe data List data *10 Statistics Linear models and related Linear regression 9

regress : Reporting : Standardized beta coefficients: 3 regress - Reporting. regress mpg weight weightsq, beta Source SS df MS Number of obs = 74 F( 2, 71) = 72.80 Model 1642.52197 2 821.260986 Prob > F = 0.0000 Residual 800.937487 71 11.2808097 R squared = 0.6722 Adj R squared = 0.6630 Total 2443.45946 73 33.4720474 Root MSE = 3.3587 mpg Coef. Std. Err. t P> t Beta weight.0141581.0038835 3.65 0.001 1.901918 weightsq 1.32e 06 6.26e 07 2.12 0.038 1.104148 _cons 51.18308 5.767884 8.87 0.000. beta weight weight 2 1.7 10

3. auto.dta weight length β 0 length = 0 β 0 β 0 = 0 noconstant Statistics Linear models and related Linear regression Model : Dependent variable: weight Independent variables: length Suppress constant term:. regress weight length, noconstant Source SS df MS Number of obs = 74 F( 1, 73) = 3450.13 Model 703869302 1 703869302 Prob > F = 0.0000 Residual 14892897.8 73 204012.299 R squared = 0.9793 Adj R squared = 0.9790 Total 718762200 74 9713002.7 Root MSE = 451.68 weight Coef. Std. Err. t P> t [95% Conf. Interval] length 16.29829.2774752 58.74 0.000 15.74528 16.8513 1 16.3 4. Example census9.dta. use http://www.stata-press.com/data/r11/census9, clear * 11 (1980 Census data by state) 1980 5 *11 File Example Datasets Stata 11 manual datasets Base Reference Manual [R] regress 11

. list state drate pop medage region in 1/5, nolabel * 12 state drate pop medage region 1. Alabama 91 3,893,888 29.30 3 2. Alaska 40 401,851 26.10 4 3. Arizona 78 2,718,215 29.20 4 4. Arkansas 99 2,286,435 30.60 3 5. California 79 23,667,902 29.90 4 (drate) (medage) (region) region Northeast, North Central, South, West 1, 2, 3, 4 drate medage pop mwp-027 4 regress - Weights Analytic weights Frequency weights Alabama 3, 893, 888 29.3 *12 region 12

Statistics Linear models and related Linear regression Model : Dependent variable: drate Independent variables: medage i.region * 13 Weights : Analytic weights: pop. regress drate medage i.region [aweight = pop] (sum of wgt is 2.2591e+08) Source SS df MS Number of obs = 50 F( 4, 45) = 37.21 Model 4096.6093 4 1024.15232 Prob > F = 0.0000 Residual 1238.40987 45 27.5202192 R squared = 0.7679 Adj R squared = 0.7472 Total 5335.01916 49 108.877942 Root MSE = 5.246 drate Coef. Std. Err. t P> t [95% Conf. Interval] medage 4.283183.5393329 7.94 0.000 3.196911 5.369455 region 2.3138738 2.456431 0.13 0.899 4.633632 5.26138 3 1.438452 2.320244 0.62 0.538 6.111663 3.234758 4 10.90629 2.681349 4.07 0.000 16.30681 5.505777 _cons 39.14727 17.23613 2.27 0.028 73.86262 4.431915 [aweight = pop] 5. regress 2 (OLS: ordinary least squares) OLS (homoskedasticity) Example auto.dta. sysuse auto, clear (1978 Automobile Data). replace weight = weight/1000 * 14 *13 i. mwp-028 *14 Data Create or change data Change contents of variable K 13

. regress mpg weight. regress mpg weight Source SS df MS Number of obs = 74 F( 1, 72) = 134.62 Model 1591.99024 1 1591.99024 Prob > F = 0.0000 Residual 851.469221 72 11.8259614 R squared = 0.6515 Adj R squared = 0.6467 Total 2443.45946 73 33.4720474 Root MSE = 3.4389 mpg Coef. Std. Err. t P> t [95% Conf. Interval] weight 6.008687.5178782 11.60 0.000 7.041058 4.976316 _cons 39.44028 1.614003 24.44 0.000 36.22283 42.65774. twoway (scatter mpg weight) (lfit mpg weight), ytitle(mpg) * 15 1 rvpplot (residual-versus-predictor plot). rvpplot weight, yline(0) * 16 *15 Graphics Twoway graph (scatter, line, etc.) *16 Statistics Linear models and related Regression diagnostics Residual-versus-predictor plot 14

rvpplot weight (heteroskedasticity) Statistics Postestimation Reports and statistics estat : Reports and statistics: Tests for heteroskedasticity (hettest) 5 estat 15

. estat hettest Breusch Pagan / Cook Weisberg test for heteroskedasticity Ho: Constant variance Variables: fitted values of mpg chi2(1) = 11.05 Prob > chi2 = 0.0009 estat hettest H 0 p 0.0009 H 0 OLS OLS regress SE/Robust SE (standard error) Statistics Linear models and related Linear regression Model : Dependent variable: mpg Independent variables: weight SE/Robust : Robust 6 regress - SE/Robust 16

. regress mpg weight, vce(robust) Linear regression Number of obs = 74 F( 1, 72) = 105.83 Prob > F = 0.0000 R squared = 0.6515 Root MSE = 3.4389 Robust mpg Coef. Std. Err. t P> t [95% Conf. Interval] weight 6.008687.5840839 10.29 0.000 7.173037 4.844337 _cons 39.44028 1.98832 19.84 0.000 35.47664 43.40393 vce(robust) OLS 95% CI OLS Robust weight [ 7.04, 4.98] [ 7.17, 4.84] cons [36.22, 42.66] [35.48, 43.40] SE/Robust Clustered robust 17

5 Graphics Twoway graph (scatter, line, etc.) Plots Create Plot 1 Choose a plot category and type: Basic plots Basic plots: Scatter Y variable: mpg X variable: weight Plots Create Plot 2 Choose a plot category and type: Fit plots Fit plots: Linear prediction Y variable: mpg X variable: weight Y axis : Title: mpg. twoway (scatter mpg weight) (lfit mpg weight), ytitle(mpg) 18