- y1
numeric vector (response variable) of length N1 for cohort 1. Must be in long format.
- y2
numeric vector (response variable) of Length N2 for cohort 2. Must be in long format.
- xmat1
N1 x p matrix of covariates for cohort 1 (column of 1's must NOT be included).
- xmat2
N2 x p matrix of covariates for cohort 2 (column of 1's must NOT be included).
- school1
numeric vector indicating to which school each student belongs for cohort 1. These labels must be contiguous labels and start with 1
- school2
numeric vector indicating to which school each student belongs for cohort 2. These labels must be contiguous labels and start with 1
- groupID
Optional vector that identifies to which group a school belongs. If NULL there is no grouping
- model
Integer indicating which value-added model is to be fit
0 - Independent school effects between the two cohorts.
1 - Temporally dependent school effects between two cohorts based on a non-statinary AR(1) process,
2 - Temporally dependent school effects based on previous cohorts post-test performance.
3 - Full model that includes both an AR(1) type correlation and one based on previous cohorts post-test performance.
- priors
Vector of prior distribution parameter values.
mb - prior mean for beta1 and beta2, default is 0.
s2b - prior variance for beta1 and beta2, default is 100^2.
at - prior shape for tau22 and tau21, default is 1.
bt - prior rate for tau22 and tau21, default is 1.
as - prior shape for sigma2, default is 1.
bs - prior rate for sigma2, default is 1.
mg - prior mean for gamma2, default is 0. (only used if model = 2)
s2g - prior variance for gamma2, default is 100^2. (only used if model = 2)
lp12 - prior lower bound for for phi12, default is -1. (only used if model = 1)
up12 - prior upper bound for for phi12, default is 1. (only used if model = 1)
mp02 - prior mean for phi02, default is 0.
s202 - prior variance for phi02, default is 100^2.
mp01 - prior mean for phi01, default is 0.
s201 - prior variance for phi01, default is 100^2.
- var.global
Logical argument. If true, then a model with common sigma21 and sigma22 among schools is fit. If false, then a model with school-specific sigma21i and sigma22i is fit.
- MHsd
Tuning parameter associated with M-H step of phi12. Default is 0.2
- nchains
number of MCMC chains to run. Default is 1
- draws
number of MCMC iterates to be collected. default is 50,000
- burn
number of MCMC iterates discared as burn-in. default is 40,000
- thin
number by which the MCMC chain is thinne. default is 10
- verbose
Logical indicating if progress of MCMC algorithm should be printed to screen along with other data summaries