This function gives the nonparametric ebp and the estimate of mean squared error (mse) for proportion based on a nonstationary generalized linear mixed model.
ebpNP(
formula,
vardir,
n.knot,
Ni,
ni,
lat,
lon,
method = "REML",
maxit = 100,
precision = 1e-04,
data
)
an object of class list of formula, describe the model to be fitted
a vector of sampling variances of direct estimators for each small area
number of knot in spatial splines. Default is 25 knot
a vector of population size for each small area
a vector of sample size for each small area
a vector of latitude for each small area
a vector of longitude for each small area
type of fitting method, default is "REML" method
number of iterations allowed in the algorithm. Default is 100 iterations
convergence tolerance limit for the Fisher-scoring algorithm. Default value is 1e-04
a data frame comprising the variables named in formula and vardir
The function returns a list with the following objects:
a vector with the values of the estimators for each small area
a vector of the mean squared error estimates for each small area
a matrix consist of area code, ebp, mse, standard error (SE) and coefficient of variation (CV)
a list containing the following objects:
# NOT RUN {
# Load data set
data(headcount)
# Fit a nonparametric generalized linear mixed model using headcount data
result <- ebpNP(y~x1, var,25, N, n, lat, long, "REML", 100, 1e-04,headcount)
result
# }
Run the code above in your browser using DataLab