get_estimates {geocausal}R Documentation

Generate a Hajek estimator

Description

A function that returns a Hajek estimator of causal contrasts

Usage

get_estimates(
  weighted_surf_1,
  weighted_surf_2,
  use_dist = TRUE,
  windows,
  dist_map,
  dist,
  entire_window
)

Arguments

weighted_surf_1

a weighted surface for scenario 1

weighted_surf_2

another weighted surface for scenario 2

use_dist

whether to use distance-based maps. By default, TRUE

windows

a list of owin objects (if 'use_dist = FALSE')

dist_map

distance map (an im object, if 'use_dist = TRUE')

dist

distances (a numeric vector within the max distance of 'dist_map')

entire_window

an owin object of the entire map

Details

'get_estimates()' is an internal function to 'get_est()' function, performing the estimation analysis after 'get_weighted_surf()' function

Value

list of Hajek estimators for each scenario ('est_haj'), causal contrasts (Hajek estimator) as a matrix ('est_tau_haj_matrix'), and causal contrast (scenario 2 - scenario 1) as a numeric vector ('est_tau_haj_cf2_vs_cf1'), along with weights, windows, and smoothed outcomes


[Package geocausal version 0.3.0 Index]