SpPOP_linear5 {SpPOP}R Documentation

Generation of spatial population along with spatially varying model parameters generated based on linear function of latitudes and longitudes

Description

Generation of spatial population along with spatially varying model parameters generated based on linear function of latitudes and longitudes

Usage

SpPOP_linear5(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 independently drawn from the uniform distribution U(0,2) and normal distribution N(1,1) and the regression coefficients are generated as linear function of locations.

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_linear5<-SpPOP_linear5(100,10,c(1:10),c(1:10))

[Package SpPOP version 0.1.0 Index]