forked from economic-research/open-ado
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpexit.ado
More file actions
31 lines (27 loc) · 709 Bytes
/
pexit.ado
File metadata and controls
31 lines (27 loc) · 709 Bytes
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
program define pexit , rclass
version 14
capture findfile project.ado
if "`r(fn)'" == "" {
di as txt "user-written package project needs to be installed first;"
di as txt "use -ssc install project- to do that"
exit 498
}
capture findfile init.ado
if "`r(fn)'" == "" {
di as txt "user-written package init needs to be installed first;"
di as txt "use -ssc install init- to do that"
exit 498
}
syntax [, summary(string) debug]
if "`debug'" == ""{
cap log close
if "`summary'" != ""{
eststo clear
estpost summarize _all
esttab using "`summary'" , ///
cells("mean(fmt(2)) sd(fmt(2)) min(fmt(1)) max(fmt(0))") ///
nomtitle nonumber replace
}
}
exit
end