Learn R Programming

SumcaVer1 (version 0.1.0)

mspe_FH_PR: MSPE estimation in FH model using Prasad-Rao method. Calculate the mspe of Fay-Herriot model in SAE using Prasad-Rao method.

Description

MSPE estimation in FH model using Prasad-Rao method. Calculate the mspe of Fay-Herriot model in SAE using Prasad-Rao method.

Usage

mspe_FH_PR(m, p, X, beta, A, D, R)

Value

Par: return estimation of model parameters

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

mspe.PR.Final: return mspe of small area predictor using the Prasad-Rao method

RB.PR: return relative bias (RB) of mspe of small area predictor using the Prasad-Rao method

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

R

number of simulation runs

Examples

Run this code
mspe_FH_PR(20,3,matrix(runif(60,0,1),nrow=20,byrow=TRUE),c(1,1,1),10,2.5,10)


Run the code above in your browser using DataLab