R/Mu.R

Defines functions Mu

## This will calculate the mean with respect to links
## E(Y) = Mu, Mu = g^-1(XB)
## See the GLM textbook for details

Mu <- function(X,B,link)
  {
    if(link == "identity")
      {
        Mu.out <- X%*%B
      }
    if(link == "inverse")
      {
        Mu.out <- 1/(X%*%B)
      }
    if(link == "log")
      {
        
      }
    if(link == "logit")
      {

      }
    return(Mu.out)
  }
thiyangt/fformpp documentation built on Jan. 5, 2024, 5:44 a.m.