-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregressions.do
83 lines (58 loc) · 2.2 KB
/
regressions.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
clear
cap clear matrix
set more off
set trace off
/* Name:
Steven Chun
*/
* change to your folder
cd "."
capture log close
log using "regressions.log", replace
local encodedShipVars shipsToUS shipsFromUS shipsToNL ///
shipsFromNL shipsToFR shipsFromFR shipsToGB ///
shipsFromGB shipsToCA shipsFromCA shipsToDE ///
shipsFromDE shipsToAU shipsFromAU shipsToEU ///
shipsFromEU shipsToES shipsFromES shipsToNAMERICA ///
shipsFromNAMERICA shipsToBE shipsFromBE shipsToWW ///
shipsFromWW shipsToSI shipsFromSI shipsToIT shipsFromIT ///
shipsToDK shipsFromDK shipsToSAMERICA shipsFromSAMERICA ///
shipsToCH shipsFromCH shipsToBR shipsFromBR shipsToCZ ///
shipsFromCZ shipsToSE shipsFromSE shipsToCO shipsFromCO ///
shipsToCN shipsFromCN shipsToPL shipsFromPL shipsToGR ///
shipsFromGR
local shipsToVars shipsToUS shipsToNL ///
shipsToFR shipsToGB ///
shipsToCA shipsToDE ///
shipsToAU shipsToEU ///
shipsToES shipsToNAMERICA ///
shipsToBE shipsToWW ///
shipsToSI shipsToIT ///
shipsToDK shipsToSAMERICA ///
shipsToCH shipsToBR shipsToCZ ///
shipsToSE shipsToCO ///
shipsToCN shipsToPL shipsToGR ///
local shipsFromVars shipsFromUS ///
shipsFromNL shipsFromFR ///
shipsFromGB shipsFromCA ///
shipsFromDE shipsFromAU ///
shipsFromEU shipsFromES ///
shipsFromNAMERICA shipsFromBE ///
shipsFromWW shipsFromSI shipsFromIT ///
shipsFromDK shipsFromSAMERICA ///
shipsFromCH shipsFromBR ///
shipsFromCZ shipsFromSE shipsFromCO ///
shipsFromCN shipsFromPL ///
shipsFromGR
use cocainePrices
reg lnUSPricePerGramPure escrow
reg lnUSPricePerGramPure escrow successful_trans
reg lnUSPricePerGramPure escrow lnSuccessfulTrans
reg lnUSPricePerGramPure escrow lnSuccessfulTrans flake
// Older vendors charge ten percent more at a significant level
reg lnUSPricePerGramPure escrow lnSuccessfulTrans flake inMarket2016
reg lnUSPricePerGramPure escrow lnSuccessfulTrans flake inMarket2016
reg lnUSPricePerGramPure escrow lnSuccessfulTrans flake inMarket2016 shipsFromAU shipsFromFR
areg lnUSPricePerGramPure escrow lnSuccessfulTrans flake inMarket2016 shipsFromAU shipsFromFR, absorb(vendor_name)
//reg lnUSPricePerGramPure escrow lnSuccessfulTrans flake escrowYoung ratingYoung youngVendor rating
capture log close