mmleFHP: Marginal MLEs for the Fay-Herriot model with known covariance

Description Usage Arguments Value Author(s) Examples

View source: R/mmleFHP.R

Description

Marginal MLEs for the Fay-Herriot random effects model where the covariance matrix for the sampling model is known

Usage

1
mmleFHP(y, X, Sigma)

Arguments

y

direct data following normal model y\sim N(θ,Σ)

X

linking model predictors θ\sim N(Xβ,τ^2 I)

Sigma

covariance matrix in sampling model

Value

a list of parameter estimates including

  1. beta, the estimated regression coefficients

  2. t2, the estimate of τ^2

Author(s)

Peter Hoff

Examples

1
2
3
4
5
6
7
n<-30 ; p<-3 
X<-matrix(rnorm(n*p),n,p)  
beta<-rnorm(p) 
theta<-X%*%beta + rnorm(n)  
Sigma<-diag(n) 
y<-theta+rnorm(n) 
mmleFHP(y,X,Sigma) 

FABInference documentation built on Jan. 9, 2020, 5:08 p.m.