addtomatrix: Add rows from a matrix

Description Usage Arguments Value See Also Examples

Description

This function adds rows from a matrix of dimension d*t*(k-1) times d*(k-1).

Usage

1
addtomatrix(C2, d, t, k)

Arguments

C2

a matrix of dimension d*t*(k-1) times d*(k-1).

d

number of areas.

t

number of time periods.

k

number of categories of the response variable.

Value

C22 a matrix of dimension d*(k-1) times d*(k-1).

See Also

Fbetaf.it, Fbetaf.ct, modelfit2,modelfit3

Examples

1
2
3
4
5
6
7
k=3 #number of categories of the response variable
d=15 # number of areas
t=2  # number of time periods
mat=matrix(1,d*t*(k-1),d*(k-1)) # a matrix

##Add items in the matrix
mat2=addtomatrix(mat,d,t,k)

mme documentation built on May 2, 2019, 10:46 a.m.