This function adds rows from a matrix of dimension dt(k-1) times d*(k-1).
addtomatrix(C2, d, t, k)
Arguments
C2: a matrix of dimension dt(k-1) times d*(k-1).
d: number of areas.
t: number of time periods.
k: number of categories of the response variable.
Returns
C22 a matrix of dimension d*(k-1) times d*(k-1).
Examples
k=3#number of categories of the response variabled=15# number of areast=2# number of time periodsmat=matrix(1,d*t*(k-1),d*(k-1))# a matrix##Add items in the matrixmat2=addtomatrix(mat,d,t,k)