View bivar_pois.R
## Simple bivariate Poisson model in stan | |
## following parameterization in Karlis and Ntzoufras 2003 | |
## Simulate data | |
n <- 50 | |
# indpendent Poisson components | |
theta <- c(2, 3, 1) | |
X_i <- array(dim=c(n, 3)) | |
for (i in 1:3){ |
View guess_number.py
# Mini Project 2 for An Introduction to Interactive Programming in Python | |
# template for "Guess the number" mini-project | |
# input will come from buttons and an input field | |
# all output for the game will be printed in the console | |
# url http://www.codeskulptor.org/#user6-irmTc4hgQqb60Du.py | |
import random | |
import simplegui | |
# initialize global variables used in your code |