get_em_vec: convert a list of im objects to a vector

View source: R/get_em_vec.R

get_em_vecR Documentation

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, time_after = TRUE, lag, entire_window = NULL, ngrid = NULL)

Arguments

em

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

time_after

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

lag

integer that specifies lags to calculate causal estimates

entire_window

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

ngrid

a number or a vector of two numbers that specify the dimension of pixels. If NULL, the pixel dimension of the original images will not be changed

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()'


geocausal documentation built on April 3, 2025, 8:46 p.m.