R/vimCox.oneprime.R

vimCox.oneprime <-
function (oneprime, cl, oob, inbagg) 
  {
    x <- numeric(length(oob))
    coef <- 1
    mat.model <- data.frame(cl = cl[oob], x)
    ll.null <- predPL(coef, mat.model)
    x <- oneprime
    coef <- coxph(cl[inbagg] ~ x[inbagg], ties = "breslow")$coefficients
    mat.model <- data.frame(cl = cl[oob], x[oob])
    ll.prime <- predPL(coef, mat.model)
    -2 * (ll.null - ll.prime)
  }

Try the logicFS package in your browser

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

logicFS documentation built on Nov. 8, 2020, 5:23 p.m.