addtolist: Add items from a list

Description Usage Arguments Value See Also Examples

View source: R/utilities.R

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 30, 2017, 3:38 a.m.