Академический Документы
Профессиональный Документы
Культура Документы
#
# Function for naive EB estimator based on theory presented in
# Rao, J.N.K. (2003): Small Area Estimation,
# Wiley Interscience, Hoboken, New Jersey
#
# Arguments:
# formula - model formula (similar to that descibed in lm R-function)
# vardir - vector of direct estimation error
# data - set of data
# PRECISION - parameter used in solve
#
# Values:
# estim - values of EB estimator
# precision - values of naive EB estimator
#
Est_EB <- Est_SEB <- fitted_val <- A <- nomin <- denomin <-
matrix(1,length(ydir),1)