View source: R/binomial.regression.R
binregG | R Documentation |
Computes G-estimator
\hat F(t,A=a) = n^{-1} \sum_i \hat F(t,A=a,Z_i)
. Assumes that the first covariate is $A$. Gives influence functions of these risk estimates and SE's are based on these. If first covariate is a factor then all contrast are computed, and if continuous then considered covariate values are given by Avalues.
binregG(x, data, Avalues = c(0, 1), varname = NULL)
x |
phreg or cifreg object |
data |
data frame for risk averaging |
Avalues |
values to compare for first covariate A |
varname |
if given then averages for this variable, default is first variable |
Thomas Scheike
data(bmt); bmt$time <- bmt$time+runif(408)*0.001
bmt$event <- (bmt$cause!=0)*1
b1 <- binreg(Event(time,cause)~age+tcell+platelet,bmt,cause=1,time=50)
sb1 <- binregG(b1,bmt,Avalues=c(0,1,2))
summary(sb1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.