Permalink
Browse files

lab5 pre2

  • Loading branch information...
ashawnbandy committed Mar 14, 2013
2 parents 0485da3 + dea4aca commit b6c9d18c286ff07ec053e10ba8b60fd056c1533c
Showing with 2,612 additions and 14,621 deletions.
  1. BIN .DS_Store
  2. +21 −0 arclab2.log
  3. +0 −3,141 lab1/BEA per capita income 1969 to 2008.csv
  4. BIN lab1/ECON 485 Spring 2013 Homework #1.doc
  5. +0 −3,136 lab1/farmse7000bea.csv
  6. BIN lab1/homework1_20120204-1.docx
  7. +0 −73 lab1/lab1problemset.do
  8. +0 −192 lab1/lab1problemset.log
  9. BIN lab1/pci70and08.dta
  10. BIN lab1/pcihistogram-withnormal.emf
  11. BIN lab1/pcihistogram.emf
  12. BIN lab1/x.dta
  13. BIN lab1/~$ON 485 Spring 2013 Homework #1.doc
  14. BIN lab1/~$mework1_20120204-1.docx
  15. +0 −22 lab2/copybuffer.do
  16. BIN lab2/homework2_20120213-1.pdf
  17. +0 −73 lab2/lab1problemset.do
  18. +0 −127 lab2/lab2.log
  19. +0 −556 lab2/lab2/Appalachian Dataset 1.csv
  20. BIN lab2/lab2/ECON 485 Spring 2013 Homework #2.pdf
  21. +0 −24 lab2/lab2/Table of Contents.html
  22. +0 −81 lab2/lab2/appalachian1st.do
  23. BIN lab2/lab2/appalachianupdated.dta
  24. +0 −556 ...2/content/enforced2/186484-CSULB_2132_LBCMP_ECON_485_SEC01_ECON485SEC01/Appalachian Dataset 1.csv
  25. BIN ...nforced2/186484-CSULB_2132_LBCMP_ECON_485_SEC01_ECON485SEC01/ECON 485 Spring 2013 Homework #2.pdf
  26. +0 −3,141 .../enforced2/186484-CSULB_2132_LBCMP_ECON_485_SEC01_ECON485SEC01/per capita income 1969 to 2008.csv
  27. +0 −22 lab2/lab2/copybuffer.do
  28. +0 −73 lab2/lab2/lab1problemset.do
  29. +0 −127 lab2/lab2/lab2.log
  30. +0 −67 lab2/lab2/lab2demo.do
  31. BIN lab2/lab2/manuempfitted.emf
  32. BIN lab2/lab2/manuempfitted.png
  33. BIN lab2/lab2/pci 1969 to 2008.dta
  34. +0 −3,141 lab2/lab2/per capita income 1969 to 2008.csv
  35. BIN lab2/lab2/scatter.emf
  36. BIN lab2/lab2/scatter2.emf
  37. BIN lab2/lab2/x.dta
  38. +0 −67 lab2/lab2demo.do
  39. BIN lab2/scatter.emf
  40. BIN lab2/scatter2.emf
  41. BIN lab2/x.dta
  42. BIN lab3/ECON 485 Spring 2013 Homework #3.pdf
  43. BIN lab3/TeachingRatings.dta
  44. BIN lab3/content/enforced2/186484-CSULB_2132_LBCMP_ECON_485_SEC01_ECON485SEC01/TeachingRatings.dta
  45. +1 −1 .../content/enforced2/186484-CSULB_2132_LBCMP_ECON_485_SEC01_ECON485SEC01/farm SE up to 2000 BEA.csv
  46. +1 −1 lab2/lab2/Farm SE 7000 BEA.csv → lab3/farm SE up to 2000 BEA.csv
  47. BIN lab3/homework3_20120214-1.docx
  48. +6 −0 lab3/homework3_20120217-1.aux
  49. +349 −0 lab3/homework3_20120217-1.log
  50. BIN lab3/homework3_20120217-1.pdf
  51. BIN lab3/homework3_20120217-1.synctex.gz
  52. +69 −0 lab3/homework3_20120217-1.tex
  53. +25 −0 lab3/lab3demo.do
  54. +67 −0 lab3/log3demo.log
  55. BIN lab3/scattereval_beauty.emf
  56. BIN lab3/scattereval_beauty.png
  57. +61 −0 lab3/teaching.do
  58. +41 −0 lab3/teaching.log
  59. BIN lab4/ECON 485 Spring 2013 Homework #4.pdf
  60. BIN lab4/arcdata1.dta
  61. BIN lab4/arcdata_n.dta
  62. BIN lab4/arclab.dta
  63. +207 −0 lab4/arclab.log
  64. +208 −0 lab4/arclab1.log
  65. +208 −0 lab4/arclab1x.log
  66. +222 −0 lab4/arclab2.log
  67. +3 −0 lab4/homework4_201200307-1.aux
  68. 0 lab4/homework4_201200307-1.bbl
  69. +48 −0 lab4/homework4_201200307-1.blg
  70. +531 −0 lab4/homework4_201200307-1.log
  71. BIN lab4/homework4_201200307-1.pdf
  72. BIN lab4/homework4_201200307-1.synctex.gz
  73. +163 −0 lab4/homework4_201200307-1.tex
  74. +88 −0 lab4/lab4 (Autosaved)
  75. +88 −0 lab4/lab4.do
  76. +63 −0 lab4/lab42 (Autosaved)
  77. +63 −0 lab4/lab42.do
  78. +20 −0 lab4/output_explaination.txt
  79. BIN lab4/q1_a_1.png
  80. BIN lab4/q1_e_1.png
  81. BIN lab4/wages.dta
  82. BIN lab4/wagesnew.dta
  83. +59 −0 lab4/x.do
  84. BIN ~$mework Guidelines.doc
View
BIN .DS_Store
Binary file not shown.
View
@@ -0,0 +1,21 @@
+--------------------------------------------------------------------------------------------------------------
+ name: <unnamed>
+ log: /Users/shawn/src/econ485/arclab2.log
+ log type: text
+ opened on: 11 Mar 2013, 19:02:10
+
+. use "arcdata1";
+file arcdata1.dta not found
+r(601);
+
+end of do-file
+
+r(601);
+
+. do "/var/folders/8r/6p_8585x5435jsc5wc_xdv5w0000gn/T//SD66697.000000"
+
+. /* A. Shawn Bandy
+> Lab #4
+> */
+. /* close previous run do-files */
+. cap log close

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
View
@@ -1,73 +0,0 @@
-/* A. Shawn Bandy
- Lab #1
- January 31, 2013
-*/
-/* close previous run do-files */
-cap log close
-
-//executes without pausing to paginate
-set more 1
-
-//clears variables
-clear
-
-//set semi-colon as command line delimiter
-#delimit ;
-
-//change directory
-cd "C:\Users\cla-spa206.CAMPUS-DOMAIN\Downloads\econ485-master\econ485-master\lab1";
-
-//a. Create a log file named lab1problemset.log on your flash drive that records all output.
-log using lab1problemset.log , replace;
-
-//b.Imports the BEA data from your flash drive
-insheet using "BEA per capita income 1969 to 2008.csv", names;
-
-
-foreach v of varlist fips year* {;
- gen `v'_new=real(`v');
- drop `v';
- rename `v'_new `v';
- };
-
-drop if missing(fips);
-
-//e. Renames the variables year1970 and year2008 as pci70 and pci08
-rename year1970 pci70;
-rename year2008 pci08;
-
-//f. Creates a new variable called perch_pci7008 that looks at the % change in per capita income from 1970 to 2008.
-generate perch_pci7008 =(pci08 - pci70) / pci70 * 100;
-
-//g. Saves the FIPS code, the name of each county, pci70, pci08, and perch_pci7008 in a new dataset called pci70and08.dta in the folder on your flash drive.
-keep fips pci70 pci08 perch_pci7008;
-
-save pci70and08, replace;
-
-//h. Reorders the variables so that the first variable is the FIPS code, followed by name of the county, then the % change in per capita income, and then per capita income in 1970 and 2008.
-order fips;
-
-//i. Sorts by the change in per capita income from 1970 to 2008
-sort perch_pci7008;
-
-//j. Uses the simple summarize function to look at all the variables left in the sample.
-summarize;
-
-//k. Uses the detailed summarize function for only pci70, pci08, and perch_pci7008
-summarize pci70 pci08 perch_pci7008, detail;
-
-//l. Examines the correlation between pci70 and pci08.
-correlate pci70 pci08;
-
-//m. Examines the correlation between pci70 and the change in per capita income from 1970 to 2008.
-correlate pci70 perch_pci7008;
-
-//n. Creates a histogram of pci70 based on fractions
-histogram pci70, fraction;
-
-//p. Exports the histogram in n. as a Windows Enhanced Metafile (emf) with the name pcihistogram. Print a copy of the histogram and include with your assignment.
-graph export pcihistogram.emf, replace;
-//o. Creates a histogram of pci70 based on fractions and with the normal distribution added.
-histogram pci70, fraction normal;
-
-log close;
View
@@ -1,192 +0,0 @@
---------------------------------------------------------------------------------
- name: <unnamed>
- log: C:\Users\cla-spa206.CAMPUS-DOMAIN\Downloads\econ485-master\econ485-
-> master\lab1\lab1problemset.log
- log type: text
- opened on: 31 Jan 2013, 11:00:39
-
-. //b.Imports the BEA data from your flash drive
-> insheet using "BEA per capita income 1969 to 2008.csv", names;
-(43 vars, 3140 obs)
-
-. foreach v of varlist fips year* {;
- 2. gen `v'_new=real(`v');
- 3. drop `v';
- 4. rename `v'_new `v';
- 5. };
-(5 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(37 missing values generated)
-(37 missing values generated)
-(37 missing values generated)
-(36 missing values generated)
-(35 missing values generated)
-(35 missing values generated)
-(35 missing values generated)
-(35 missing values generated)
-(35 missing values generated)
-(34 missing values generated)
-(33 missing values generated)
-(33 missing values generated)
-(31 missing values generated)
-(31 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(30 missing values generated)
-(29 missing values generated)
-(29 missing values generated)
-(29 missing values generated)
-(29 missing values generated)
-(29 missing values generated)
-(29 missing values generated)
-(28 missing values generated)
-
-. drop if missing(fips);
-(5 observations deleted)
-
-. //e. Renames the variables year1970 and year2008 as pci70 and pci08
-> rename year1970 pci70;
-
-. rename year2008 pci08;
-
-. //f. Creates a new variable called perch_pci7008 that looks at the % change
-> in per capita income from 1970 to 2008.
-> generate perch_pci7008 =(pci08 - pci70) / pci70 * 100;
-(46 missing values generated)
-
-. //g. Saves the FIPS code, the name of each county, pci70, pci08, and perch_
-> pci7008 in a new dataset called pci70and08.dta in the folder on your flash dri
-> ve.
-> keep fips pci70 pci08 perch_pci7008;
-
-. save pci70and08, replace;
-file pci70and08.dta saved
-
-. //h. Reorders the variables so that the first variable is the FIPS code, fo
-> llowed by name of the county, then the % change in per capita income, and then
-> per capita income in 1970 and 2008.
-> order fips;
-
-. //i. Sorts by the change in per capita income from 1970 to 2008
-> sort perch_pci7008;
-
-. //j. Uses the simple summarize function to look at all the variables left i
-> n the sample.
-> summarize;
-
- Variable | Obs Mean Std. Dev. Min Max
--------------+--------------------------------------------------------
- fips | 3135 30028.73 15222.11 1001 56045
- pci70 | 3109 3252.609 775.2473 1330 8537
- pci08 | 3112 33093.17 8530.69 12558 140275
-perch_p~7008 | 3089 935.7032 203.3258 339.2445 4607.215
-
-. //k. Uses the detailed summarize function for only pci70, pci08, and perch_
-> pci7008
-> summarize pci70 pci08 perch_pci7008, detail;
-
- pci70
--------------------------------------------------------------
- Percentiles Smallest
- 1% 1817 1330
- 5% 2131 1400
-10% 2309 1407 Obs 3109
-25% 2700 1411 Sum of Wgt. 3109
-
-50% 3214 Mean 3252.609
- Largest Std. Dev. 775.2473
-75% 3700 6936
-90% 4154 7041 Variance 601008.3
-95% 4589 7441 Skewness .8335436
-99% 5550 8537 Kurtosis 5.181562
-
- pci08
--------------------------------------------------------------
- Percentiles Smallest
- 1% 20026 12558
- 5% 23347 14553
-10% 24950 15408 Obs 3112
-25% 27807.5 15452 Sum of Wgt. 3112
-
-50% 31551.5 Mean 33093.17
- Largest Std. Dev. 8530.69
-75% 36601.5 95764
-90% 42148 120766 Variance 7.28e+07
-95% 47045 129956 Skewness 2.862153
-99% 62559 140275 Kurtosis 24.05697
-
- perch_pci7008
--------------------------------------------------------------
- Percentiles Smallest
- 1% 565.1243 339.2445
- 5% 663.0004 348.9991
-10% 723.7597 367.0411 Obs 3089
-25% 810.7478 371.6119 Sum of Wgt. 3089
-
-50% 914.9754 Mean 935.7032
- Largest Std. Dev. 203.3258
-75% 1034.645 2056.145
-90% 1172.608 2179.003 Variance 41341.39
-95% 1262.627 2289.321 Skewness 2.790385
-99% 1553.517 4607.215 Kurtosis 39.70566
-
-. //l. Examines the correlation between pci70 and pci08.
-> correlate pci70 pci08;
-(obs=3089)
-
- | pci70 pci08
--------------+------------------
- pci70 | 1.0000
- pci08 | 0.6583 1.0000
-
-
-. //m. Examines the correlation between pci70 and the change in per capita in
-> come from 1970 to 2008.
-> correlate pci70 perch_pci7008;
-(obs=3089)
-
- | pci70 per~7008
--------------+------------------
- pci70 | 1.0000
-perch_p~7008 | -0.3787 1.0000
-
-
-. //n. Creates a histogram of pci70 based on fractions
-> histogram pci70, fraction;
-(bin=34, start=1330, width=211.97059)
-
-. //p. Exports the histogram in n. as a Windows Enhanced Metafile (emf) with
-> the name pcihistogram. Print a copy of the histogram and include with your as
-> signment.
-> graph export pcihistogram.emf, replace;
-(note: file pcihistogram.emf not found)
-(file C:\Users\cla-spa206.CAMPUS-DOMAIN\Downloads\econ485-master\econ485-master\
-> lab1\pcihistogram.emf written in Enhanced Metafile format)
-
-. //o. Creates a histogram of pci70 based on fractions and with the normal di
-> stribution added.
-> histogram pci70, fraction normal;
-(bin=34, start=1330, width=211.97059)
-
-. log close;
- name: <unnamed>
- log: C:\Users\cla-spa206.CAMPUS-DOMAIN\Downloads\econ485-master\econ485-
-> master\lab1\lab1problemset.log
- log type: text
- closed on: 31 Jan 2013, 11:00:51
---------------------------------------------------------------------------------
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -1,22 +0,0 @@
-//twoway (lfit farmse1970 farmse2000)(scatter farmse1970 farmse2000);
-//graph export scatter2.emf, replace;
-
-
-//return list;
-//help scalar;
-
-//calculate tstat manually
-//sum farmse1970;
-//scalar tstat = (r(mean) - 800)/(r(sd) / sqrt(r(N)));
-
-//create pval by manually - sca is short for scalar
-//sca pval = ttail(r(N),tstat);
-
-//now use ttest
-//ttest farmse1970==800;
-
-//notice that hand calculated value is the same as that for 't' when ttest is run
-
-
-//always use unpaired unequal
-//ttest farmse1970= farmse2000, unpaired unequal;
Binary file not shown.
View
@@ -1,73 +0,0 @@
-/* A. Shawn Bandy
- Lab #1
- January 31, 2013
-*/
-/* close previous run do-files */
-cap log close
-
-//executes without pausing to paginate
-set more 1
-
-//clears variables
-clear
-
-//set semi-colon as command line delimiter
-#delimit ;
-
-//change directory
-cd "C:\Users\cla-spa206.CAMPUS-DOMAIN\Downloads\econ485-master\econ485-master\lab1";
-
-//a. Create a log file named lab1problemset.log on your flash drive that records all output.
-log using lab1problemset.log , replace;
-
-//b.Imports the BEA data from your flash drive
-insheet using "BEA per capita income 1969 to 2008.csv", names;
-
-
-foreach v of varlist fips year* {;
- gen `v'_new=real(`v');
- drop `v';
- rename `v'_new `v';
- };
-
-drop if missing(fips);
-
-//e. Renames the variables year1970 and year2008 as pci70 and pci08
-rename year1970 pci70;
-rename year2008 pci08;
-
-//f. Creates a new variable called perch_pci7008 that looks at the % change in per capita income from 1970 to 2008.
-generate perch_pci7008 =(pci08 - pci70) / pci70 * 100;
-
-//g. Saves the FIPS code, the name of each county, pci70, pci08, and perch_pci7008 in a new dataset called pci70and08.dta in the folder on your flash drive.
-keep fips pci70 pci08 perch_pci7008;
-
-save pci70and08, replace;
-
-//h. Reorders the variables so that the first variable is the FIPS code, followed by name of the county, then the % change in per capita income, and then per capita income in 1970 and 2008.
-order fips;
-
-//i. Sorts by the change in per capita income from 1970 to 2008
-sort perch_pci7008;
-
-//j. Uses the simple summarize function to look at all the variables left in the sample.
-summarize;
-
-//k. Uses the detailed summarize function for only pci70, pci08, and perch_pci7008
-summarize pci70 pci08 perch_pci7008, detail;
-
-//l. Examines the correlation between pci70 and pci08.
-correlate pci70 pci08;
-
-//m. Examines the correlation between pci70 and the change in per capita income from 1970 to 2008.
-correlate pci70 perch_pci7008;
-
-//n. Creates a histogram of pci70 based on fractions
-histogram pci70, fraction;
-
-//p. Exports the histogram in n. as a Windows Enhanced Metafile (emf) with the name pcihistogram. Print a copy of the histogram and include with your assignment.
-graph export pcihistogram.emf, replace;
-//o. Creates a histogram of pci70 based on fractions and with the normal distribution added.
-histogram pci70, fraction normal;
-
-log close;
Oops, something went wrong.

0 comments on commit b6c9d18

Please sign in to comment.