mmedata: Create objects of class mmedata

Description Usage Arguments See Also Examples

View source: R/utilities.R

Description

This function creates objects of class mmedata.

Usage

1
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.

See Also

modelfit1, modelfit2, modelfit3

Examples

1
2
3
4
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)

mme documentation built on May 30, 2017, 3:38 a.m.