Skip to content

Commit

Permalink
Add binary simulation snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vrognas committed Sep 6, 2024
1 parent bc1f478 commit 60caa40
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,21 @@
],
"description": "Concentration derivative"
},
"Binary simulation": {
"prefix": ["simulation_binary"],
"body": [
"\n",
"PROB = THETA($1) ; Probability of DV=1",
"IF (ICALL == 4) THEN",
" CALL RANDOM(2,R)",
" DV = 1",
" IF (R > PROB) DV = 0",
"ENDIF",
"",
"\\$SIMULATION (12345) (678910 UNIFORM)",
"\n$0"
],
"description": "Simulation from binary models"
},
"FOCEI": {
"prefix": ["$ESTIMATION"],
Expand Down

0 comments on commit 60caa40

Please sign in to comment.