powered by
This function performs a parametric bootstrap-based test procudure for testing spatial nonstationarity in the data.
NS.test(formula, vardir, lat, long, iter = 100, 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 latitude for each small area
a vector of longitude for each small area
number of iterations allowed in the algorithm. Default is 100 iterations
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(paddysample) # Testing spatial nonstationarity of the data result <- NS.test(y ~ x1+x2, var, latitude, longitude, iter=50, data = paddysample[1:10,]) result # }
Run the code above in your browser using DataLab