addtolist: Add items from a list

Description Usage Arguments Value See Also Examples

Description

This function adds items from a list of dimension d*t, where d is the number of areas and t is the number of times periods.

Usage

1
addtolist(B_d, t, d)

Arguments

B_d

a list in each area.

t

number of time periods.

d

number of areas.

Value

B_d a list of dimension d.

See Also

Fbetaf.it, Fbetaf.ct, modelfit2, modelfit3

Examples

1
2
3
4
5
6
7
8
k=3  #number of categories for the response variable
pp=c(1,1) #vector with the number of auxiliary variables in each category
data(simdata2) # data
mod=2
datar=data.mme(simdata2,k,pp,mod)

##Add the time periods
l=addtolist(datar$X,datar$t,datar$d)

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