p-Wasserstein Distance Linear Projections Using a Stepwise Method
WPSW(
X,
Y,
theta,
power = 2,
force = NULL,
direction = c("backward", "forward"),
method = c("selection.variable", "scale", "projection"),
transport.method = transport_options(),
OTmaxit = 100,
epsilon = 0.05,
calc.theta = TRUE,
model.size = NULL,
parallel = NULL,
display.progress = FALSE,
...
)
An object of class WpProj
matrix of covariates
matrix of predictions
optional parameter matrix for selection methods.
Power of the Wasserstein distance
Any covariates to force into the model?
forward or backward selection
"selection.variable" or "projection
Method for calculating the Wasserstein distance. Should be one of the outputs of transport_options()
.
maximum number of iterations for the opt?imal transport methods
hyperparameter if using sinkhorn iterations to approximate OT
should we get the linear coefficients
Maximum model size
foreach backend
Display intermediate progress