Learn R Programming

geocausal (version 0.4.0)

get_em_vec: convert a list of im objects to a vector

Description

`get_em_vec()` get the vector form of a column of a hyperframe that summarizes the effect modifier data in heterogeneity analysis

Usage

get_em_vec(
  em,
  outcome_pixel_count = NULL,
  time_after = TRUE,
  entire_window = NULL,
  lag
)

Arguments

em

column of a hyperframe that summarizes effect modifier data. In the form of `hyperframe$column`.

outcome_pixel_count

A list of integer-valued pixel images giving outcome event counts per spatial pixel, typically obtained from `pixel_count_ppp()`.

time_after

whether to include one unit time difference between treatment and outcome. By default = TRUE

entire_window

owin object (the entire region of interest). If given, then the values outside the region will be set to `NA`.

lag

integer that specifies lags to calculate causal estimates

Details

The function `get_em_vec()` get the vector form of the effect modifier in the heterogeneity analysis. It is useful if you want to construct the variance matrix `E_mat` that is passed to the function `get_cate()`