R/invlink.R

Defines functions invlink

Documented in invlink

invlink <- function(x, type = c("cloglog", "log", "logit", "probit")){

  switch(type,
    cloglog = 1 - exp(-exp(x)),
    log = exp(x),
    logit = plogis(x),
	  probit = pnorm(x)
  )

}

Try the aods3 package in your browser

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

aods3 documentation built on July 8, 2022, 5:06 p.m.