find_esgrid {OVtool} | R Documentation |
find_esgrid
Description
Finds a reasonable effect size grid to simulate over.
Usage
find_esgrid(my_data, my_cov, treatment, outcome, my_estimand)
Arguments
my_data |
Data |
my_cov |
vector of covariates |
treatment |
column name of treatment indicator in my_data |
outcome |
column name of outcome in my_data |
my_estimand |
Relevant estimand ("ATE" or "ATT") |
Value
a data frame with three columns, "Cor_Outcome", "es", and "cov". "Cor_Outcome" represents rho grid values, "ES" represents the range of grid values to represent the association between the unobserved confounder and the treatment indicator on the effect size scale, and "cov" is a vector of all the covariates used in the propensity score model
Examples
data(sud)
sud = data.frame(sud)
sud$treat = ifelse(sud$treat == "A", 1, 0)
sud$wts = sample(seq(1, 10, by=.01), size=nrow(sud), replace = TRUE)
outcome_mod = outcome_model(data = sud,
weights = "wts",
treatment = "treat",
outcome = "eps7p_3",
model_covariates = c("sfs8p_0"),
estimand = "ATE")
find_es = find_esgrid(sud, my_cov="sfs8p_0", treatment="treat",
outcome="eps7p_3",
my_estimand="ATE")
[Package OVtool version 1.0.3 Index]