Skip to content

Commit

Permalink
remove olds results
Browse files Browse the repository at this point in the history
  • Loading branch information
j-jayes committed Nov 6, 2023
1 parent 05ce84e commit 8f8665e
Show file tree
Hide file tree
Showing 51 changed files with 298 additions and 1,042 deletions.
Binary file modified .DS_Store
Binary file not shown.
5 changes: 0 additions & 5 deletions do_files/04-income-regressions.do
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ esttab Model1 Model2 Model3 using `results_dir'/04_log-income-regression.tex, la
*-------------------------------------------------------------*
eststo clear

qreg2 log_income birth_parish_treated##c.popular_movement_density_1900_FA age ///
age_2 female i.marital i.schooling i.hisclass_group_abb, ///
quantile(.3) cluster (birth_parish_ref_code)


forvalues i = 0.1(0.1)0.9 {

di `i'
Expand Down
41 changes: 33 additions & 8 deletions do_files/income-regressions-age-check.do
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,49 @@

clear all
set more off
cd "C:\Users\User\Documents\Recon\paper-3-analysis"
cd "/Users/jonathanjayes/Documents/PhD/paper-3-analysis/"
* read in data from
use "data/census/1930_census_regression_dataset_params_set.dta"

drop if employed == 0

* Gen age categories

gen age_15_40 = (age >= 15 & age < 40)
gen age_40_plus = (age >= 40)
gen age_15_20 = (age >= 15 & age < 20)
gen age_20_30 = (age >= 20 & age < 30)
gen age_30_40 = (age >= 30 & age < 40)

*** results directory "results/regressions/" as a local
local results_dir "results/margins/"


* Model 1:
reg log_income female i.marital i.schooling i.hisclass_group_abb ///
c.age##c.birth_parish_treated, vce(cluster birth_parish_ref_code)

eststo: margins, dydx(birth_parish_treated) at(age = (min_age_value(1)max_age_value))

esttab using results.csv, replace








quietly summarize log_income
local mean3 = round(r(mean), 0.01)
reg log_income birth_parish_treated age age_2 female i.marital i.schooling i.hisclass_group_abb, vce(cluster birth_parish_ref_code)
eststo Model1
estadd scalar mean_depvar = `mean3'

* Tabulate the regression results and save them in TeX format
esttab Model1 using `results_dir'/05-income-regressions-age-check.do.tex, label replace ///
stats(r2 N F mean_depvar, fmt(2 0 3 2) labels("R-squared" "Observations" "F-stat" "Mean Dependent Var")) ///
cells(b(star fmt(3)) se(par fmt(2))) ///s
addnotes("Robust standard errors in parentheses")




*** results directory "results/regressions/" as a local
local results_dir "results/regressions/"

*** Regression 1: log_income as dependent variable.

Expand Down
Loading

0 comments on commit 8f8665e

Please sign in to comment.