R/linkfn.R

"linkfn" <-
function(x, family, ...){
args <- list(...)
switch( family,
"identity"=x,
"log"=exp(x),
"logit"=exp(x)/(1+exp(x))       ,
"hyper"=1/(1+x)   
)       

}

Try the mreg package in your browser

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

mreg documentation built on Oct. 26, 2023, 5:07 p.m.