R/g0.R

Defines functions g0

Documented in g0

#' Compute value of p(0) using a logit formulation
#'
#' @param beta logistic parameters
#' @param z design matrix of covariate values
#'
#' @return vector of p(0) values
#' @author Jeff Laake
g0 <- function(beta, z){
  exp(z %*% beta)/(1 + exp(z %*% beta))
}

Try the mrds package in your browser

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

mrds documentation built on July 9, 2023, 6:06 p.m.