forked from saudiwin/idealstan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_zero_length.stan
38 lines (32 loc) · 884 Bytes
/
test_zero_length.stan
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
34
35
36
37
//
// This Stan program defines a simple model, with a
// vector of values 'y' modeled as normally distributed
// with mean 'mu' and standard deviation 'sigma'.
//
// Learn more about model development with Stan at:
//
// http://mc-stan.org/users/interfaces/rstan.html
// https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started
//
// The input data is a vector 'y' of length 'N'.
data {
}
transformed data {
int par_length = 0;
}
// The parameters accepted by the model. Our model
// accepts two parameters 'mu' and 'sigma'.
parameters {
vector[par_length] bob;
vector[par_length+1] mike;
}
transformed parameters {
vector[par_length+1] append_me;
append_me = append_row(bob, mike);
}
// The model to be estimated. We model the output
// 'y' to be normally distributed with mean 'mu'
// and standard deviation 'sigma'.
model {
append_me ~ normal(0,1);
}