Title: | Small Area Estimation for Count Data |
---|---|
Description: | Provides small area estimation for count data type and gives option whether to use covariates in the estimation or not. By implementing Empirical Bayes (EB) Poisson-Gamma model, each function returns EB estimators and mean squared error (MSE) estimators for each area. The EB estimators without covariates are obtained using the model proposed by Clayton & Kaldor (1987) <doi:10.2307/2532003>, the EB estimators with covariates are obtained using the model proposed by Wakefield (2006) <doi:10.1093/biostatistics/kxl008> and the MSE estimators are obtained using Jackknife method by Jiang et. al. (2002) <doi:10.1214/aos/1043351257>. |
Authors: | Rizki Ananda Fauziah, Ika Yuni Wulansari |
Maintainer: | Rizki Ananda Fauziah <[email protected]> |
License: | GPL-2 |
Version: | 0.1.0 |
Built: | 2024-11-01 11:26:02 UTC |
Source: | https://github.com/cran/saeeb |
This function gives the area level EB and MSE estimator based on Wakefield (2006) model and the refinement model by Kismiantini (2007).
ebcov(formula, data, e)
ebcov(formula, data, e)
formula |
an object of class |
data |
a mandatory data frame containing the variables in |
e |
a variable that contains the expected numbers of cases in each area. |
A typical model has the form response ~ terms where the response is a vector with numeric data type and terms is a set(s) of auxiliary variables.
A formula has an implied intercept term. To remove this use either y ~ x - 1 or y ~ 0 + x. See formula
for more details of allowed formulae.
The formula
only accomodates variables with count data type and will be modeled using binomial negatif linear regression.
The function returns a list with the following objects:
data frame with number of rows equal to number of areas containing the EB estimator. For domains with zero sample size, the EB estimators are based on the synthetic regression.
alpha: the scale parameter estimator in Gamma distribution
v: the shape parameter estimator in Gamma distribution
Estimate: maximum likelihood estimator of the model parameters
SE: asymptotic estimate of the standard error of the the parameters
Z: the Z statistic of the asymptotic hypothesis test that the population value for the parameter is 0
LCL: lower 95% confidence interval for the parameter estimators
UCL: upper 95% confidence interval for the parameter estimators
method: Jackknife
mse: the mean squared error estimator of the EB estimators
est: direct estimators for the response variable
mse: the mean squared error estimator of the direct estimators
#Load dataset data(lip) #Save output as an object results <- ebcov(Y ~ AFF, lip, E) results
#Load dataset data(lip) #Save output as an object results <- ebcov(Y ~ AFF, lip, E) results
This function gives the area level EB and MSE estimator based on Clayton & Kaldor (1987).
ebnocov(y, data, e)
ebnocov(y, data, e)
y |
a response variable contains the numbers of cases in each area. |
data |
a mandatory data frame containing the |
e |
a variable that contains the expected numbers of cases in each area. |
This function only accomodates variables with count data type.
The function returns a list with the following objects:
data frame with number of rows equal to number of areas containing the EB estimator. For domains with zero sample size, the EB estimators are based on the synthetic regression.
alpha: the scale estimator in Gamma distribution
v: the shape parameter estimator in Gamma distribution
method: Jackknife
mse: the mean squared error estimator of the EB estimators
est: direct estimators for the response variable
mse: the mean squared error estimator of the direct estimators
#Load dataset data(lip) #Save output as an object results <- ebnocov(Y, lip, E) results
#Load dataset data(lip) #Save output as an object results <- ebnocov(Y, lip, E) results
This dataset sets out observed and "expected" cases of lip cancer registered during the 6 years from 1975 to 1980 in each of the 56 counties of Scotland. These are the districts prior to the 1995 reorganization of local government. The dataset includes district names and identifying numbers and for district i
with i = 1, ..., 56
: the number of observed cases Yi; the number of expected cases Ei; and the value of a single covariate (percent of population employed in agriculture, fishing and forestry).
lip
lip
A data frame with 56 rows and 5 variables:
The district identifying number.
The district name.
The number of observed lip cancer cases.
The number of expected lip cancer cases.
The percentage of population employed in agriculture, fishing and forestry.
This package provides functions for small area estimation using Empirical Bayes (EB) Poisson-Gamma model. This model only accomodates count data type and gives option whether to use covariates in the estimation or not. Each function returns EB estimators and mean squared error (MSE) estimators for each area. The EB estimators are obtained using the model proposed by Wakefield (2006) and refined by Kismiantini (2007) and the MSE estimators are obtained using Jackknife method by Jiang et. al. (2002).
ebcov
Gives the EB Poisson-Gamma with covariates and the Jackknife MSE estimators.
ebnocov
Gives the EB Poisson-Gamma without covariates and the Jackknife MSE estimators.
Rizki Ananda Fauziah, Ika Yuni Wulansari
Clayton, David & Kaldor, John. (1987). Empirical Bayes Estimates of Age-Standardized Relative Risks for Use in Disease Mapping. Biometrics, 43, 671-681.
Kismiantini. (2007). Pendugaan Statistik Area Kecil Berbasis Model Poisson-Gamma [Tesis]. Bogor: Institut Pertanian Bogor.
Rao, J. N. K. & Molina, Isabel. (2015). Small Area Estimation (2nd ed.). New Jersey: John Wiley & Sons, Inc.
Wakefield, Jon. (2006). Disease Mapping and Spatial Regression with Count Data. Biostatistics, 8, 2, 158–183. doi:10.1093/biostatistics/kxl008.