mspe_FH_Boot {SumcaVer1}R Documentation

MSPE estimation in FH model using double-phase bootstrap method.Calculate the mspe of Fay-Herriot model in SAE using double-phase bootstrap method.

Description

MSPE estimation in FH model using double-phase bootstrap method.Calculate the mspe of Fay-Herriot model in SAE using double-phase bootstrap method.

Usage

mspe_FH_Boot(m, p, X, beta, A, D, B1, B2, R)

Arguments

m

number of small areas

p

number of fixed model parameters

X

covariates

beta

regression coefficients

A

variance of area-specific random effects

D

sampling variance

B1

number of first-phase bootstrap method

B2

number of second-phase bootstrap method

R

number of simulation runs

Value

Par: return estimation of model parameters

MSPE.TRUE.Final: return empirical MSPE of small area predictor

mspe.Boot1.Final: return mspe of small area predictor using the bootstrap method 1

mspe.Boot2.Final: return mspe of small area predictor using the bootstrap method 2

RB.Boot1: return relative bias (RB) of mspe of small area predictor using the bootstrap method 1

RB.Boot2: return relative bias (RB) of mspe of small area predictor using the bootstrap method 2

Examples

mspe_FH_Boot(20,3,matrix(runif(60,0,1),nrow=20,byrow=TRUE),c(1,1,1),10,2.5,20,20,10)




[Package SumcaVer1 version 0.1.0 Index]