1 1 2015 4 6 1. ECCS. ECCS,. (https://ras.ecc.u-tokyo.ac.jp/guacamole/) 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file editor, Do View Do-file Editor Execute(do). 3. Mac System Preferences... Display, Resolution Scaled 800x600. 2015 4 9 1. (csv, )
2 1 csv File Import Tex data (delimited, *.csv,...) Browse..., csv. xls, xlsx File Import Excel spreadsheet (*.xls, *.xlsx) Excel file: Browse..., xls( xlsx). 1, Import first row as variable names ( ). 2. (Command csv ) (1) pwd (pwd:print working directory),.
(2). cd " " (cd:change directory), File Change Working Directory...,. (3) insheet using,., insheet using " ". 3 2015 4 20 1... Statistics Summaries, tables, amd tests Summary and descriptive statistics Binomial calculator Sample size n = 865, Successes x = 268 a. a nˆp = 865 0.31 = 268.15, x = 268. Exact, Wald.
4 1 1.1:. display 865*0.31 268.15. cii 865 268 -- Binomial Exact -- Variable Obs Mean Std. Err. [95% Conf. Interval] -------------+--------------------------------------------------------------- 865.3098266.0157228.2791244.3418306. cii 865 268, wald (Wald ) -- Binomial Wald --- Variable Obs Mean Std. Err. [95% Conf. Interval] -------------+--------------------------------------------------------------- 865.3098266.0157228.2790104.3406427. prtesti 865 268 0.4, count ( 0.31, (count)268 ) One-sample test of proportion x: Number of obs = 865 ------------------------------------------------------------------------------ Variable Mean Std. Err. [95% Conf. Interval] -------------+---------------------------------------------------------------- x.3098266.0157228.2790104.3406427 ------------------------------------------------------------------------------ p = proportion(x) z = -5.4135 Ho: p = 0.4 Ha: p < 0.4 Ha: p!= 0.4 Ha: p > 0.4 Pr(Z < z) = 0.0000 Pr( Z > z ) = 0.0000 Pr(Z > z) = 1.0000 (count), Use integer counts instead of proportions ( ),. 2. Video examples., Video examples, Youtube (, 12). 3. t 0.05 (5%). Command display invttail(, 0.05). display invttail(, 0.05). t, t. Command display ttail(, t ).
0.95 (95%). Command display invnormal(0.95). STATA, Command help functions. 4. Data, Other utilities Hand calculator, Create..., Category:. Mac, + Y= \ 5 2015 4 23 25. 4. ( ) (log p t log p t 1 ) 100 (, (log(topix) - log(l.topix))*100 ). 25. 2, 3 L2.sony, L3.sony. 28. 5. 1.24, X i = x i Y i E(Y i X i = x i ) = β 0 + β 1 x i 95%, x i 5 Confidence interval for an individual forecast, X i = x i Yi = β 0 + β 1 x i + ϵ i 95%, 95%. ϵ i 1.1:, 95% ( ) 95% ) (1) 95% Confidence Interval 95% Prediction Interval 6 0 6 4 2 0 2 4 x 6 0 6 4 2 0 2 4 x 95% CI Fitted values y 95% PI Fitted values y
6 1 1.2:, 95% 95% (2) 95% Confidence Interval & 95% Prediction Interval 6 0 6 4 2 0 2 4 x 95% PI Fitted values 95% CI y STATA14 1.1. (Data) (Create or change data (Other variable creation commands (Draw sample from normal distribution)
7 1.1: 1.2: (2)
8 1 (Data) (Data Editor) ( ) (Data Editor (Browse) ( ( )(Data Editor (Edit) (Graphics) ( / )(Twoway graph (scatter, line, etc)) 1.3: (1)
9 1.4: (2) (Data) (Describe data (Summary Statistics (Statistics) / / (Summaries, tables, and tests (Summary and descriptive statistics) (Summary Statistics
10 1 1.6: (1),, (Statistics) / / (Summaries, tables, and tests (Summary and descriptive statistics) (Correlations and covariances 1.7: Command
11 1.8: Do-file Editor 1.2. 1.10: Excel Data Editor (2)
12 1 1.11: 1.13:
13 csv (File) (Import) (,.csv )(Tex data (delimited, *.csv,...)) (Browse...), csv. xls, xlsx (File) (Import) Excel (.xls, xlsx)(excel spreadsheet (*.xls, *.xlsx)) Excel (Excel file:) (Browse...), xls( xlsx). 1, 1 (Import first row as variable names) ( ).
14 1 1.3. (Statistics) / / (Summaries, tables, and tests (Summary and descriptive statistics) (Confidence intervals 1.14: 95% ( ) (Statistics) / / (Summaries, tables, and tests (Classical tests of hypotheses) t ( )(t test (mean-comparison test)
15 1.15: : 5% 1.16: : 5%
16 1 (Statistics) / / (Summaries, tables, and tests (Summary and descriptive statistics) ( )(Binomial calculator) (Sample size) n = 865, (Successes) x = 268 a. a nˆp = 865 0.31 = 268.15, x = 268. (Exact), (Wald). ( ) (Statistics) / / (Summaries, tables, and tests (Classical tests of hypotheses) ( )(Proportion test calculator
17 1.17: : 5% 1.18: : 5%
18 1 1.4. (Data) (Create or change data (Create new variable) 1.19: (Statistics) (Time series (Setup and utilities) (Declare dataset to be time-series data)
19 1.20: (Statistics) (Linear models and related (Linear regression)
20 1 1.21: 1.22: 95% (1)
1.23: 95% (2) 21