addtolist function

Add items from a list

Add items from a list

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.

addtolist(B_d, t, d)

Arguments

  • B_d: a list in each area.
  • t: number of time periods.
  • d: number of areas.

Returns

B_d a list of dimension d.

Examples

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)

See Also

Fbetaf.it, Fbetaf.ct, modelfit2, modelfit3

  • Maintainer: E. Lopez-Vizcaino
  • License: GPL (>= 2)
  • Last published: 2019-01-27

Useful links