SpPOP_nonlinear5 {SpPOP} | R Documentation |
Generation of spatial population along with spatially varying model parameters generated based on non-linear function of latitudes and longitudes
Description
Generation of spatial population along with spatially varying model parameters generated based on non-linear function of latitudes and longitudes
Usage
SpPOP_nonlinear5(N, k, xlat, ylong)
Arguments
N |
integer; population size i.e. N= (k * k) |
k |
integer |
xlat |
numeric vector |
ylong |
numeric vector |
Value
The developed function returns a dataframe of spatially generated population consist of simulated response variable (i.e. Y) along with their spatial coordinates, spatially varying coefficients and two explanatory variables (i.e. X1 and X2). The auxiliary variables are drawn independently from uniform distribution U(0,2) and normal distribution N(1,1) and the regression coefficients are generated as non-linear function of latitudes and longitudes.
References
1. Wang, Ning., Mei, Chang-Lin. and Yan, Xiao-Dong. (2008). Local Linear Estimation of Spatially Varying Coefficient Models: An Improvement on the Geographically Weighted Regression Technique. Environment and Planning A: Economy and Space, 40(4), 986-1005.<DOI:10.1068/a3941>.
2. Chao, Liu., Chuanhua, Wei. and Yunan, Su. (2018). Geographically weighted regression model-assisted estimation in survey sampling. Journal of Nonparametric Statistics. <DOI:10.1080/10485252.2018.1499907>.
Examples
sp_nonlinear5<-SpPOP_nonlinear5(100,10,c(1:10),c(1:10))