beta_err_gen: Generate Data with Beta Sampling Errors
Description
The traditional Fay-Herriot small area model has a Normal latent variable and Normal observed response errors. This method generates data with Normal latent variables and Beta errors on the response. Note that the sampling errors are transformed so their mean and variance match the the first two moments of the traditional model.
Usage
beta_err_gen (M, p, D, lambda, a, b)
Value
A list containing
D
copy of argument `D`
beta
vector of length `p` latent coefficients
lambda
copy of argument `lambda`
X
matrix of independent variables
theta
vector of latent effects
Y
vector of responses
err
vector of sampling errors
name
name of sampling error distribution, including shape parameters