These methods tidy the coefficients of a quantile regression model into a summary, augment the original data with information on the fitted values and residuals, and construct a glance of the model's statistics.
# S3 method for rq
tidy(x, se.type = "rank", conf.int = TRUE, conf.level = 0.95,
alpha = 1 - conf.level, ...)# S3 method for rqs
tidy(x, se.type = "rank", conf.int = TRUE,
conf.level = 0.95, alpha = 1 - conf.level, ...)
# S3 method for nlrq
tidy(x, conf.int = FALSE, conf.level = 0.95, ...)
# S3 method for rq
glance(x, ...)
# S3 method for nlrq
glance(x, ...)
# S3 method for rq
augment(x, data = model.frame(x), newdata, ...)
# S3 method for rqs
augment(x, data = model.frame(x), newdata, ...)
# S3 method for nlrq
augment(x, data = NULL, newdata = NULL, ...)
model object returned by rq
or nlrq
Type of standard errors to calculate; see summary.rq
boolean; should confidence intervals be calculated, ignored
if se.type = "rank"
confidence level for intervals
confidence level when se.type = "rank"
; defaults to the same
as conf.level
although the specification is inverted
other arguments passed on to summary.rq
Original data, defaults to extracting it from the model
If provided, new data frame to use for predictions
All tidying methods return a data.frame without rownames, whose structure depends on the method chosen.
tidy.rq
returns a data frame with one row for each coefficient.
The columns depend upon the confidence interval method selected.
tidy.rqs
returns a data frame with one row for each coefficient at
each quantile that was estimated. The columns depend upon the confidence interval
method selected.
tidy.nlrq
returns one row for each coefficient in the model,
with five columns:
The term in the nonlinear model being estimated and tested
The estimated coefficient
The standard error from the linear model
t-statistic
two-sided p-value
glance.rq returns one row for each quantile (tau) with the columns:
quantile estimated
the data's log-likelihood under the model
the Akaike Information Criterion
the Bayesian Information Criterion
residual degrees of freedom
glance.rq returns one row for each quantile (tau) with the columns:
quantile estimated
the data's log-likelihood under the model
the Akaike Information Criterion
the Bayesian Information Criterion
residual degrees of freedom
augment.rq returns a row for each original observation with the following columns added:
Residuals
Fitted quantiles of the model
Quantile estimated
Lower confidence interval value
Upper confidence interval value
augment.rqs returns a row for each original observation and each estimated quantile (tau) with the following columns added:
Residuals
Fitted quantiles of the model
Quantile estimated
augment.rqs returns a row for each original observation with the following columns added:
Residuals
Fitted quantiles of the model
If se.type != "rank"
and conf.int = TRUE
confidence
intervals are calculated by summary.rq
. Otherwise they are standard t
based intervals.
This simply calls augment.nls
on the "nlrq" object.