mmedata {mme} | R Documentation |
Create objects of class mmedata
Description
This function creates objects of class mmedata.
Usage
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 |
k |
number of categories of the response variable. |
pp |
vector with the number of auxiliary variables per category. |
See Also
modelfit1
, modelfit2
,
modelfit3
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)
[Package mme version 0.1-6 Index]