-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tested code in .rst files via notebooks, corrected accordingly
- Loading branch information
1 parent
02bfab0
commit c2aa91b
Showing
5 changed files
with
95 additions
and
170 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
data { | ||
int<lower=0> N; | ||
real<lower=0,upper=1> theta; | ||
transformed data { | ||
int<lower=0> N = 10; | ||
real<lower=0,upper=1> theta = 0.35; | ||
} | ||
generated quantities { | ||
int y_sim[N]; | ||
real<lower=0,upper=1> theta_rep; | ||
for (n in 1:N) | ||
y_sim[n] = bernoulli_rng(theta); | ||
theta_rep = sum(y) / N; | ||
} |