fayHerriotEB: Obtain empirical Bayesian estimates for group j

View source: R/fayHerriotEB.R

fayHerriotEBR Documentation

Obtain empirical Bayesian estimates for group j

Description

This function returns empirical Bayesian estimates for a specified group from the conjugate normal spatial Fay-Herriot model.

Usage

fayHerriotEB(j, Y, group, W = NA, X = NA)

Arguments

j

Obtain EB values for group in index j- numeric value in group

Y

Data vector

group

index vecter of the same lenght as Y

W

Non-standardized adjacency matrix

X

Group-level covariates

Value

empirical Bayesian estimates of population mean and it's variance


fabPrediction documentation built on May 29, 2024, 7:05 a.m.