Simulate General Nested Model
sim_gns(u, xb, wxg, listw, rho = 0.5, lambda = 0.2, model = c("sar", "ma"))A numeric vector
an error vector
predicted x values as calculated by make_xb()
predicted spatial lag effect as calculated by make_wxg()
a listw object generated with sim_grid_listw().
the spatial autoregressive coefficient for the spatially lagged dependent variable.
a value value between -1 and 1. The spatial autoregressive coefficient for the error term.
default "sar". Which model should be simulated. Provide "ma" for the moving average.