View source: R/causal.null.test.R
causalNullTest.control | R Documentation |
This function initializes the control parameters for use in causalNullTest
. The outcome regression function mu is by default estimated using SuperLearner
, and the propensity is estimated using the conditional mixed density method implemented in cmdSuperLearner
. Alternatively, the estimation process can be overriden by providing predictions from pre-fit nuisance estimators.
causalNullTest.control( mu.SL.library = c("SL.mean", "SL.glm", "SL.gam", "SL.earth"), g.SL.library = c("SL.mean", "SL.glm", "SL.gam", "SL.earth"), g.n.bins = 2:(length(unique(A))/50), cross.fit = TRUE, V = 10, folds = NULL, save.nuis.fits = FALSE, mu.hat = NULL, g.hat = NULL, n.sim = 10000, return.Omega = FALSE, conf.level = 0.95, verbose = FALSE )
mu.SL.library |
Library of candidate learners for the outcome regression to be passed on to |
g.SL.library |
Library of candidate learners for the outcome regression to be passed on to |
g.n.bins |
Numeric vector of number of bins to use for estimation of the propensity. Passed on to |
cross.fit |
Logical indicating whether to cross-fit nuisance parameters. Defaults to |
V |
Positive integer number of folds for cross-fitting. Defaults to 10. |
folds |
Optional |
save.nuis.fits |
Logical indicating whether to save the fitted nuisance objects. |
mu.hat |
Optional pre-fit outcome regression. If |
g.hat |
Optional pre-fit treatment propensities. If |
n.sim |
Number of simulations to use for the limiting Gaussian process in computing approximate quantiles. |
return.Omega |
Logical indicating whether to return the estimated primitive function Omega. |
conf.level |
Optional confidence level to use for computing confidence bands for Omega. |
verbose |
Logical indicating whether to print progress to the command line. |
Named list containing the control options.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.