Created
July 22, 2015 16:06
-
-
Save jrnold/97b3bf98b95a7372fb1c to your computer and use it in GitHub Desktop.
Snippets for Stan in ACE / Rstudio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet for | |
for (${1:var} in ${2:start}:${3:end}) { | |
${0} | |
} | |
snippet if | |
if (${1:condition}) { | |
${0} | |
} | |
snippet el | |
else (${1:condition}) { | |
${0} | |
} | |
snippet ei | |
else if (${1:condition}) { | |
${0} | |
} | |
snippet <l | |
<lower=${1:expression}>${0} | |
snippet <u | |
<upper=${1:expression}>${0} | |
snippet <lu | |
<lower=${1:expression}, upper=${2:expression}>${0} | |
snippet while | |
while (${1:condition}) { | |
${0} | |
} | |
snippet gen | |
generated quantities { | |
${0} | |
} | |
snippet mdl | |
model { | |
${0} | |
} | |
snippet par | |
parameters { | |
${0} | |
} | |
snippet tpar | |
transformed parameters { | |
${0} | |
} | |
snippet data | |
data { | |
${0} | |
} | |
snippet tdata | |
transformed data { | |
${0} | |
} | |
snippet ode | |
integrate_ode(${1:function},${2:y0},${3:t0},${4:t},${5:theta},${6:x_r},${7:x_i}); | |
snippet functions | |
functions { | |
${0} | |
} | |
snippet fun | |
${1:return} ${2:name} (${args}) { | |
${0} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment