mmedata function

Create objects of class mmedata

Create objects of class mmedata

This function creates objects of class mmedata.

mmedata(fi, k, pp)

Arguments

  • fi: input data set with (d X t) rows and 4+k+sum(pp) columns. The first four columns of the data set are, in this order: the area indicator (integer), the time indicator (integer), the sample size of each domain and the population size of each domain. The following k columns are the categories of the response variable. Then, the auxiliary variables: first, the auxiliary variables of the first category, second, the auxiliary variables of the second category, and so on. Examples of input data set are in simdata, simdata2 and simdata3.
  • k: number of categories of the response variable.
  • pp: vector with the number of auxiliary variables per category.

Examples

k=3 #number of categories of the response variable pp=c(1,1) #vector with the number of auxiliary variables in each category data(simdata) r=mmedata(simdata,k,pp)

See Also

modelfit1, modelfit2, modelfit3

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

Useful links

    Downloads (last 30 days):