R/linkfun.R

Defines functions linkder linkinv linkfun

# Some functions for binary case
linkfun <- function(x){
  1 - 1/(exp(x) + 1)
}

linkinv <- function(p){
  log(p/(1-p))
}

linkder <- function(x){
  t <- exp(x)
  t/(t + 1)^2
}

Try the SLFPCA package in your browser

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

SLFPCA documentation built on Dec. 28, 2022, 1:34 a.m.