manipulate_qr_residuals | R Documentation |
Apply a function to the residuals of a quantile regression
manipulate_qr_residuals(string_formula, tau, factor = 1, FUN = stats::sd, ...)
string_formula |
A formula to be passed to |
tau |
Quantile of interest (number between 0 and 1) |
factor |
Number to be multiplied to the output of |
FUN |
A function to manipulate the residuals;
defaults to |
... |
Arguments passed to |
The purpose of this function is to define the big M constant in
iqr_milp
, miqcp_proj
, and potentially other
functions.
The formula relies on variables defined outside the scope of the function.
Result of factor
multiplied by the output of FUN
evaluated at the quantile regression specified by string_formula
and
tau
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.