A low-level function for the generic optimization step in estimating Mean-optimal treatment regime for censored data
A low-level function for the generic optimization step in estimating Mean-optimal treatment regime for censored data
This function supports the IPWE_mean_IndCen function. It does the genetic algorithm based method with inverse probability weighting for censored data. In the future, if more complicated applications/scenarios is sought after for mean optimality, users may create their own wrapper function based on Gene_Mean_CenIPWE.
data_aug: a data.frame of the observed data after preprocessing. It should include be augmented with two new columns: ph for the enstimated propensity scores and ghat for the estimated conditional survival probabilities.
ph: propensity score estimates. For example, if the treatment is denoted by A, then ph should be P(A=1|X)
p_level: printing level
regimeClass: a formula indicating the form of treatment regimes
Domains: default is NULL. Otherwise, the object should be a nvars *2
matrix used as the space of parameters, which will be supplied to rgenoud::genoud.
cluster: default is FALSE. This can also be an object of the 'cluster' class returned by one of the makeCluster commands in the parallel package or a vector of machine names so rgenoud::genoud can setup the cluster automatically.
s.tol: tolerance level for the GA algorithm. This is input for parameter solution.tolerance
in function rgenoud::genoud.
it.num: the maximum GA iteration number
pop.size: an integer with the default set to be 3000. This is roughly the number individuals for the first generation in the genetic algorithm (rgenoud::genoud).