R/strRegression-p-cor-sq-dot.R

Defines functions .PCorSq

#' Squared Partial Correlation
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param srsq Numeric vector.
#'   Squared semipartial correlation.
#' @param rsq Numeric.
#'   R-squared.
#'
#' @family Partial Correlation Functions
#' @keywords strRegression pcor internal
#' @noRd
.PCorSq <- function(srsq,
                    rsq) {
  return(
    srsq / (
      1 - (
        rsq - srsq
      )
    )
  )
}

Try the betaMC package in your browser

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

betaMC documentation built on June 24, 2024, 9:08 a.m.