-
Notifications
You must be signed in to change notification settings - Fork 0
/
semiparametric_model.do
77 lines (51 loc) · 1.57 KB
/
semiparametric_model.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
// Non-POF
sls mktshare primp_pct primp_avgamt primp_avgt ///
if rebate_dummy == 0 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store n1
sls mktshare primp_expamt primp_avgt ///
if rebate_dummy == 0 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store n2
sls mktshare primp_pct primp_avgamt all_avgt ///
if rebate_dummy == 0 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store n3
sls mktshare primp_expamt all_avgt ///
if rebate_dummy == 0 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store n4
// POF
sls mktshare primp_pct primp_avgamt primp_avgt ///
if rebate_dummy == 1 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store p1
sls mktshare primp_expamt primp_avgt ///
if rebate_dummy == 1 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store p2
sls mktshare primp_pct primp_avgamt all_avgt ///
if rebate_dummy == 1 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store p3
sls mktshare primp_expamt all_avgt ///
if rebate_dummy == 1 & ordertype == "Market", ///
init(search("off"), conv_maxiter(50))
estimates store p4
// RMSE
estimates restore n1
ereturn list rmse
estimates restore n2
ereturn list rmse
estimates restore n3
ereturn list rmse
estimates restore n4
ereturn list rmse
estimates restore p1
ereturn list rmse
estimates restore p2
ereturn list rmse
estimates restore p3
ereturn list rmse
estimates restore p4
ereturn list rmse