R/strRegression-r-sq-bar-dot.R

Defines functions .RSqBar

#' Adjusted R-Squared
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param rsq Numeric.
#'   R-Squared.
#' @param k Positive integer.
#'   `p` regressors plus 1.
#' @param n Positive integer.
#'   Sample size.
#'
#' @family R-squared Functions
#' @keywords strRegression rsq internal
#' @noRd
.RSqBar <- function(rsq,
                    k,
                    n) {
  return(
    1 - (1 - rsq) * (
      (n - 1) / (n - k)
    )
  )
}

Try the betaSandwich package in your browser

Any scripts or data that you put into this service are public.

betaSandwich documentation built on Oct. 15, 2023, 1:07 a.m.