OM.MA {madr} | R Documentation |
This function uses a pseudo-MC3 algorithm to search the outcome model space.
OM.MA(Y, X, U, W = NULL, M = 1000, alpha = NULL, binary = F)
Y |
vector of the outcome |
X |
vector of the treatment (0/1) |
U |
matrix of covariates to be considered for inclusion/exclusion |
W |
matrix of covariates that will be included in all models (optional) |
M |
the number of MCMC iteration |
alpha |
vector of inclusion indicators (which columns of U) to start MCMC algorithm (optional) |
binary |
indicator if the outcome is binary (optional) |
A list. The list contains the following named components:
dict |
a list that contains the BIC, predicted values, and estimated treatment effect from each outcome model |
alpha |
the last model visited by the algorithm |
out.table |
a matrix that contains the BIC and estimated treatment effect from each outcome model |