saeplus_hhestpoly: Compute the geospatial grid level estimates

View source: R/saeplus_hhestpoly.R

saeplus_hhestpolyR Documentation

Compute the geospatial grid level estimates

Description

This function estimates geospatial grid level estimates from household surveys indicators

Usage

saeplus_hhestpoly(
  geo_dt,
  hh_dt,
  shp_dt,
  admin_var = "ADM3_CODE",
  ind_var = "hhsize",
  weight_var = "hhweight",
  FUN = "weighted.mean",
  crs = 4326,
  agr = "constant"
)

Arguments

geo_dt

sf/st dataframe object including the polygon geometry included

hh_dt

household survey data with indicator(s)

shp_dt

shapefile with desired administrative level of aggregation

admin_var

a variable within hh_dt for the level at which the indicator will be estimated

ind_var

the indicator variable of interest within hh_dt

weight_var

the weight variable of interest within hh_dt

FUN

the aggregation function to be applied (currently MUST take ind_var and weight_var)

Value

data.table/data.frame object with grid level estimates


SSA-Statistical-Team-Projects/SAEplus documentation built on Aug. 24, 2022, 11:26 a.m.