Description Usage Arguments Value Examples
Finds a reasonable effect size grid to simulate over.
1 | find_esgrid(my_data, my_cov, treatment, outcome, my_estimand)
|
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") |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.