initial.values: Initial values for fitting algorithm to estimate the fixed...

Description Usage Arguments Value References See Also Examples

Description

This function sets the initial values. An iterative algorithm fits the multinomial mixed models that requires initial values for the fixed effects, the random effects and the variance components. This initial values are used in modelfit1, modelfit2 and modelfit3.

Usage

1
initial.values(d, pp, datar, mod)

Arguments

d

number of areas.

pp

vector with the number of auxiliary variables per category.

datar

output of function data.mme.

mod

a number specifying the type of model: 1=multinomial mixed model with one independent random effect for each category of the response variable (Model 1), 2=multinomial mixed model with two independent random effects for each category of the response variable: one domain random effect and another independent time and domain random effect (Model 2) and 3= multinomial mixed model with two independent random effects for each category of the response variable: one domain random effect and another correlated time and domain random effect (Model 3).

Value

A list containing the following components, depending on the chosen model.

beta.0

a list with the initial values for the fixed effects beta per category.

phi.0

vector with the initial values for the variance components phi of Model 1.

phi1.0

vector with the initial values for the variance components phi1 of Model 2 or 3.

phi2.0

vector with the initial values for the variance components phi2 of Model 2 or 3.

u

matrix with the initial values for the random effect for Model 1.

u1.0

matrix with the initial values for the first random effect for Model 2 or 3.

u2.0

matrix with the initial values for the second random effect for Model 2 or 3.

rho.0

vector with the initial values for the correlation parameter for Model 3.

References

Lopez-Vizcaino, ME, Lombardia, MJ and Morales, D (2013). Multinomial-based small area estimation of labour force indicators. Statistical Modelling, 13, 153-178.

Lopez-Vizcaino, ME, Lombardia, MJ and Morales, D (2013). Small area estimation of labour force indicators under a multinomial mixed model with correlated time and area effects. Submitted for review.

See Also

data.mme, wmatrix, phi.mult.it, prmu.time, Fbetaf.it, phi.direct.it, sPhikf.it, ci, modelfit2, msef.it, mseb

Examples

1
2
3
4
5
6
7
8
9
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)
D=nrow(simdata)
mod=1 #Type of model
datar=data.mme(simdata,k,pp,mod)

## Initial values for fixed, random effects and variance components
initial=datar$initial

mme documentation built on May 2, 2019, 10:46 a.m.