obpFH_adjusted: Adjusted observed best predictor for Fay-Herriot Model.

Description Usage Arguments Details Value References

View source: R/obpFHbenchmark.R

Description

This function computes the Adjusted Observed Best Predictor (OBP) for Fay-Herriot model. The variance of the random error can be specified by the user. Otherwise the function will calculate its Best Predictive Estimator (BPE). In the process of of computing Adjusted OBP it also calculates the BPE of the regression coefficients of the fixed effect.

Usage

1
2
obpFH_adjusted(formula, data, errorvar, weight, randvar = NULL,
  maxiter = 100, precision = 1e-04)

Arguments

formula

an object of class formula (or one that can be coerced to that class): a symbolic description of the model to be fitted. The variables included in formula must have a length equal to the number of small areas. More about the model specification are given under Details.

data

data frame containing the variable names in formula and errorvar.

errorvar

vector containing the variances of the random errors for all small areas.

weight

vector containing the sampling weights of small areas. If sum of the weights is not 1, the weights are normalized.

randvar

variance of the random effect. If not supplied, BPE is estimated.

maxiter

maximum number of iterations used in estimating randvar.

precision

covergence tolerance limit for estimating randvar.

Details

The variance of the random effect can be specified by the user. Otherwise the function will calculate its Best Predictive Estimator (BPE). In the process of of computing Adjusted OBP it also calculates the BPE of the regression coefficients of the fixed effect.

formula is specified in the form response ~ predictors where the predictors are separated by +. formula has an implied intercept term. To remove the intercept term, use either y ~ x - 1 or y ~ 0 + x.

Value

The function will return a list containing the Adjusted OBP as follows:

obpAdjusted

a vector of adjusted OBP values.

References

Bandyopadhyay R, Jiang J (2017) "Benchmarking the Observed Best Predictor"

Jiang J, Nguyen T, and Rao J. S. (2011), "Best Predictive Small Area Estimation", Journal of the American Statistical Association.


rohosen/OBPSAE documentation built on May 17, 2019, 2:22 p.m.