View source: R/sandwich.model.r
sandwich.model | R Documentation |
Estimate the mean and standard error for each reporting unit using SSH-based spatial prediction.
sandwich.model(object,
sampling.attr,
type="shp",
ssh.id.col=NULL,
ssh.weights=NULL)
object |
When |
sampling.attr |
Text for the name of the attribute to be predicted in the sampling layer. |
type |
Text for the type of input data. |
ssh.id.col |
Text for the column that specifies which stratum each sampling unit falls into (see |
ssh.weights |
A |
A sandwich.ci
object that contains the estimated mean and standard deviation for each reporting unit.
Wang, J. F., Haining, R., Liu, T. J., Li, L. F., & Jiang, C. S. (2013). Sandwich estimation for multi-unit reporting on a stratified heterogeneous surface. Environment and Planning A, 45(10), 2515-2534.
load.data.shp
, load.data.txt
data(sim.data)
sim.sw <- sandwich.model(object=sim.data, sampling.attr="Value", type="shp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.