Nothing
#' Confidence Intervals for
#' Multiple Correlation Coefficients
#' (R-Squared and Adjusted R-Squared)
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @return Returns a matrix of
#' multiple correlation coefficients
#' (R-squared and adjusted R-squared),
#' standard errors,
#' test statistics,
#' degrees of freedom,
#' p-values,
#' and
#' confidence intervals.
#'
#' @param object Object of class `rsqbetasandwich`.
#' @param alpha Numeric vector.
#' Significance level \eqn{\alpha}.
#'
#' @family Beta Sandwich Functions
#' @keywords betaSandwich ci rsq internal
#' @noRd
.RSqCI <- function(object,
alpha = NULL) {
stopifnot(
inherits(
object,
"rsqbetasandwich"
)
)
if (is.null(alpha)) {
alpha <- object$args$alpha
}
stopifnot(
all(alpha > 0 & alpha < 1)
)
return(
.CIWald(
est = object$fit$lm_process$rsq,
se = sqrt(diag(.RSqCov(object))),
theta = 0,
alpha = alpha,
z = FALSE,
df = object$fit$lm_process$df
)
)
}
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.