-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepisens.sublime-snippet
33 lines (29 loc) · 1.41 KB
/
episens.sublime-snippet
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
<snippet>
<content><![CDATA[
* Replace "value"
local disease =value // Disease Variable
local exposure =value // Exposure Variable
* Misclassification of the exposure
local se1=value // define the sensitivity among the cases
local se2=value // define the sensitivity among the noncases
local sp1=value // define the specificity among the cases
local sp2=value // define the specificity among the noncases
* Selection bias
local cex=value // define the selection probability among cases exposed
local cun=value // define the selection probability among cases unexposed
local nex=value // define the selection probability among noncases exposed
local nun=value // define the selection probability among noncases unexposed
* Uncontrolled confounding
local prc =value // define the prevalence of the confounder among the unexposed
local ceor=value // define the confounder-exposure odds ratio
local cdrr=value // define the confounder-disease relative risk
episens `disease' `exposure', combined study(cc) ///
dseca(c(`se1')) dsenc(c(`se2')) dspca(c(`sp1')) dspnc(c(`sp2')) ///
dpscex(c(`cex')) dpscun(c(`cun')) dpsnex(c(`nex')) dpsnun(c(`nun')) ///
dpunexp(c(`prc')) dorce(c(`ceor')) drrcd(c(`cdrr'))
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>episens</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.stata</scope>
</snippet>