-
Notifications
You must be signed in to change notification settings - Fork 9
/
mr.ado
60 lines (57 loc) · 1.08 KB
/
mr.ado
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
*! version 0.1.0 19jan2020 Tom Palmer
program define mr
version 9
syntax anything(everything) [aweight] [if] [in] [, *]
local subcmd "`1'"
local rest = subinword("`0'", "`subcmd'", "", 1)
if "`subcmd'" == "deps" {
mrdeps
}
else if "`subcmd'" == "egger" {
mregger `rest'
}
else if "`subcmd'" == "eggerplot" {
mreggerplot `rest'
}
else if "`subcmd'" == "eggersimex" {
mreggersimex `rest'
}
else if "`subcmd'" == "forest" {
mrforest `rest'
}
else if "`subcmd'" == "funnel" {
mrfunnel `rest'
}
else if "`subcmd'" == "ivests" {
mrivests `rest'
}
else if "`subcmd'" == "median" {
mrmedian `rest'
}
else if "`subcmd'" == "medianobs" {
mrmedianobs `rest'
}
else if "`subcmd'" == "modal" {
mrmodal `rest'
}
else if "`subcmd'" == "modalplot" {
mrmodalplot `rest'
}
else if "`subcmd'" == "ratio" {
mrratio `rest'
}
else if "`subcmd'" == "mvivw" {
mrmvivw `rest'
}
else if "`subcmd'" == "mvegger" {
mrmvegger `rest'
}
else if "`subcmd'" == "leaveoneout" {
mrleaveoneout `rest'
}
else {
di as err "`subcmd' is not a valid subcommand."
exit 198
}
end
exit