qs_control.Rd
Control quantreg_spacing parameters
qs_control(
trunc = TRUE,
small = 1e-06,
lambda = NULL,
output_quantiles = TRUE,
calc_avg_me = FALSE,
calc_r2 = TRUE,
...
)
whether to truncate residual values below the argument "small"
level of "small" values to guarentee numerical stability. If not specified, set dynamically based on the standard deviation of the outcome variable.
For penalized regression, you can specify a level of lambda which will weight the penalty. If not set, will be determined based on 10-fold cross-validation.
whether to save fitted quantiles as part of the function output
whether to return average marginal effects as part of the fitted object
whether to calculate psuedo-r2 for quantile regression
Other arguments, ignored for now
control parameters to pass to the control arguments of quantreg_spacing
,
the lower-level function called by qs
. This is set via the function qs_control
,
which returns a named list, with elements including: