Nothing
#' Summary Method for fars Object
#'
#' @description Prints a complete summary of the fars object.
#'
#' @param object An object of class \code{fars_quantiles}.
#' @param ... Additional arguments (ignored).
#'
#' @return The input object \code{object}, returned invisibly.
#'
#' @method summary fars
#' @export
summary.fars <- function(object, ...) {
cat("Factor-Augmented Quantile Regressions (FARS)\n")
cat("===========================================\n")
cat("Summary of Quantile Regressions\n\n")
levels <- object$Levels
coeff <- object$Coeff
stderr <- object$StdError
pval <- object$Pvalue
variables <- rownames(coeff)
for (i in seq_along(levels)) {
cat(sprintf("-------------------------\n Quantile: %.2f \n-------------------------\n", levels[i]))
est <- coeff[, i]
se <- stderr[, i]
p <- pval[, i]
summary_df <- data.frame(
Estimate = formatC(est, digits = 3, format = "f"),
`Std. Error` = formatC(se, digits = 3, format = "f"),
`P-value` = formatC(p, digits = 3, format = "f"),
row.names = variables,
check.names = FALSE
)
print(summary_df)
cat("\n")
}
invisible(object)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.