powered by
This function performs a parametric bootstrap-based test procudure for testing spatial nonstationarity in the data.
NSglm.test( formula, vardir, 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
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 class "htest" containing the following components:
a character string indicating what type of test was performed.
the p-value for the test.
a character string giving the name of the data.
# NOT RUN { # Load data set data(headcount) # Testing spatial nonstationarity of the data result <- NSglm.test(y~x1, var, N,n,lat,long, "REML", 10, 1e-04, headcount[1:10,]) result # }
Run the code above in your browser using DataLab