R/nu_identity_self.R

Defines functions nu_identity_self

Documented in nu_identity_self

#' Function to calculate w = nu(eta) given eta for identity link
#'
#' @param x Numeric vector of eta, eta = X*beta.
#' @return A numeric vector representing the diagonal elements of the W matrix (nu(eta)).
#' @export
#'
#' @examples
#' eta = c(1,2,3,4)
#' nu_identity_self(eta)
#'

nu_identity_self <- function(x) {     # for identity link
  x;
}

Try the ForLion package in your browser

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

ForLion documentation built on April 11, 2025, 5:38 p.m.