-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiv.sthlp
62 lines (43 loc) · 1.7 KB
/
iv.sthlp
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
{smcl}
{* *! version 0.1.0 10sep2021 Tom Palmer}{...}
{vieweralsosee "ivonesamplemr" "help ivonesamplemr"}{...}
{viewerjumpto "Syntax" "iv##syntax"}{...}
{viewerjumpto "Description" "iv##description"}{...}
{viewerjumpto "Options" "iv##options"}{...}
{viewerjumpto "Examples" "iv##examples"}{...}
{viewerjumpto "Stored results" "iv##results"}{...}
{viewerjumpto "Author" "iv##author"}{...}
{title:Title}
{p 5}
{bf:iv} {hline 2} Instrumental variable (IV) programs useful for one-sample Mendelian randomization (MR) analyses
{p_end}
{marker syntax}{...}
{title:Syntax}
{p 8 16 2}
{opt iv} {it:subcommand} ... [{it:aweight}] {ifin} [{cmd:,} {it:options}]
{marker description}{...}
{title:Description}
{pstd}
{cmd:iv} is a simple wrapper to the commands in the {help ivonesamplemr} package.
{pstd}
The {it:subcommand} is specified as the mrrobust program name without its {cmd:iv} prefix,
i.e. {cmd:ivlsmm ...} can alternatively be run using the syntax {cmd:iv lsmm ...}.
{marker options}{...}
{title:Options}
{phang}
{cmd:iv} takes the options for the specified subcommand.
{marker examples}{...}
{title:Examples}
{phang2}{cmd:.} {stata "use https://raw.github.com/remlapmot/ivonesamplemr/main/data/ivbinoutdata, clear"}{p_end}
{pstd}Fit the model with a single instrumental variable.{p_end}
{phang2}{cmd:.} {stata "iv lsmm y (x = z1)"}{p_end}
{phang2}{cmd:.} {stata "iv msmm y (x = z1 z2 z3)"}{p_end}
{phang2}{cmd:.} {stata "iv tsps y (x = z1 z2 z3), link(logit)"}{p_end}
{phang2}{cmd:.} {stata "iv tsri y (x = z1 z2 z3), link(logit)"}{p_end}
{marker results}{...}
{title:Stored results}
{pstd}
{cmd:iv} returns the results from the specified subcommand.
{marker author}{...}
{title:Author}
INCLUDE help ivonesamplemr-author