View source: R/quant_regress.R
quantreg_spacing | R Documentation |
Lower level function which calculates the quantile spacing regression coefficients
quantreg_spacing(
y,
X,
var_names,
alpha,
jstar,
algorithm = "rq.fit.sfn",
weights = NULL,
control = list(small = 1e-06, trunc = TRUE, start_list = NA, output_quantiles =
FALSE, calc_avg_me = FALSE, calc_r2 = T),
...
)
y |
Column of response variable. |
X |
Regression specification matrix. |
var_names |
RHS regression variable names. |
alpha |
Quantiles to be estimated. |
jstar |
First quantile to be estimated (usually the center one) |
algorithm |
The name of a function which will estimate a quantile regression.
Defaults to rq.fit.sfn_start_val. Must be a string, as it is passed to |
weights |
vector of optional weights |
control |
control parameters to pass to the control arguments of
|
... |
other parameters passed to the algorithm |
small |
Minimum size of residuals for computational accuracy. |
trunc |
Boolean value; if true, replace those dependent values less than small with small itself; else, only use rows with residuals greater than small |
start_list |
Starting values for regression optimization. |
Returns a list of coefficients. num_betas is an x by p matrix of estimated parameters for each supplied quantiles. pseudo_r is a 1 by p matrix of psuedo R^2 values for each quantile estimate. warnings is a 1 by p matrix of warnings produced by each quantile regression call. iter: is a 1 by p matrix of iterations ran by each quantile regression call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.