Options For Use With the Simulated Annealing Selection Method
simulated_annealing_method_options(
force = NULL,
method = c("binary program", "projection"),
transport.method = transport_options(),
OTmaxit = 0L,
epsilon = 0.05,
maxit = 1L,
temps = 1000L,
max.time = 3600,
proposal.method = c("covariance", "uniform"),
energy.distribution = c("boltzman", "bose-einstein"),
cooling.schedule = c("Geman-Geman", "exponential"),
model.size = NULL,
nvars = NULL,
display.progress = FALSE,
parallel = NULL,
calc.theta = TRUE,
...
)
A named list with the above arguments
Any covariates to force into the model? Should be by column number or NULL if no variables to force into the model.
Should covariates be selected as an approximate "binary program" or should a projection method be used. Default is the approximate binary program.
Method for Wasserstein distance calculation. Should be one the outputs of transport_options()
The number of iterations to run the Wasserstein distance solvers.
A value > 0 for the penalty parameter of if using the Sinkhorn method for optimal transport
Maximum number of iterations per temperature
Number of temperatures to try
Maximum time in seconds to run the algorithm
The method to propose the next covariate to add. One of "covariance" or "random". "covariance" will randomly select from covariates with probability proportional to the absolute value of the covariance. "uniform" will select covariates uniformly at random.
The energy distribution to use for evaluating proposals. One of "boltzman" or "bose-einstein". Default is "boltzman".
The schedule to use for cooling temperatures. One of "Geman-Geman" or "exponential". Default is "Geman-Geman".
How many coefficients should the maximum final model have? Ignored if nvars
set.
What model sizes should one check? Should be a numeric vector with maximum less than number of variables or NULL.
Default is NULL. Overrides model.size
if is not NULL
Logical. Should intermediate progress be displayed? TRUE or FALSE. Default is FALSE.
A cluster backend to be used by foreach::foreach()
. See foreach::foreach()
for details about how to set them up. The WpProj
functions will register the cluster with the doParallel::registerDoParallel()
function internally.
Return the linear coefficients? Default is TRUE.
Not used.
simulated_annealing_method_options()
Run the code above in your browser using DataLab