View source: R/calc_mixtures_ate.R
calc_mixtures_ate | R Documentation |
Aggregate mixture rules found across the folds that have the same variables. For each rule extract the relevant nuisance parameter data calculated in the folds. Given the validation data estimates across the folds, for each tree do a TMLE update step to target the average treatment effect. Update the initial counterfactuals, calculate the influence curve and using the influence curve calculate variance estimates and p-values.
calc_mixtures_ate(input_mix_rules, input_mix_data, y, n_folds)
input_mix_rules |
List of dataframes of rules found for a mixture across the folds |
input_mix_data |
Nuisance parameter data for mixture rules found |
y |
Outcome variable across the folds |
n_folds |
Number of folds used in cross-validation across all the folds |
A list with mixture analysis results which includes:
results
: A data frame with variable threshold combinations
on the rows and ATE, variance and consistency estimates on the columns.
group_list
: A list of rule combinations found in the
ensemble decision tree model grouped by variable sets in the rules and
directions of the coefficient in the linear model. Also provided is the
fold the rule was found and the RMSE of the model which used the rule.
mixture_data_list
: A list of data frames which houses the
data for each mixture rule evaluated as an exposure, the baseline
covariates, outcome, and nuisance parameter estimates for the respective
rule.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.