null_gen {agfh} | R Documentation |
Generate Data with Normal Sampling Errors
Description
The Fay-Herriot small area model has a Normal latent variable and Normal observed response. This generates data according to that specification.
Usage
null_gen (M, p, D, lambda)
Arguments
M |
number of areal units |
p |
dimension of regressors i.e. |
D |
vector of precisions for response, length |
lambda |
value of latent variance |
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 |
Source
Marten Thompson thom7058@umn.edu
Examples
M <- 50
p <- 3
D <- rep(0.1, M)
lamb <- 1/2
dat <- null_gen(M, p, D, lamb)
[Package agfh version 0.2.1 Index]