fitbccv.lognsp {bcfrailph} | R Documentation |
Bivariate correlated lognormal frailty model fitting function.
Description
Semi-parametric Bivariate correlated lognormal frailty model fitting function.
Usage
fitbccv.lognsp(X, Y, initfrailp, control = bcfrailph.control())
Arguments
X |
Matix of predictors. This should not include an intercept. |
Y |
a Surv object containing 2 columns (coxph.fit). |
initfrailp |
Initial estimates for the frailty parameters. If not specified, initial frailty variance will be obtained from coxph with univariate lognormal frailty model and for correlation c(0.5) will be used. |
control |
Arguments to control the fit. The default is |
Value
An object of that contains the following components.
-
coefficients
- A vector of estimated Covariate coefficients. -
frailparest
- A vector of estimated Frailty parameters i.e. frailty variance and correlation. -
stderr
-A vector containing the Standard error of the Estimated parameters both covariate coefficients and frailty parameters. -
loglilk0
- Log likelihood of without frailty model or loglik of coxph fit. -
loglilk
-Log likelihood of Cox PH model with frailty. -
Iloglilk
- Log likelihood of with frailty. For gamma fit it is I-likelihood or the likelihood after integrating out the frailty term.For lognormal fit it is the approximate likelihood. -
bhaz
- an array containing unique event times and estimated baseline hazard. -
X
-Matrix of observed covariates. -
time
-the observed survival time. -
censor
-censoring indicator. -
resid
-the martingale residuals. -
lin.prid
-the vector of linear predictors. -
frail
-estimated Frailty values. -
iteration
-Number of outer iterations. -
e.time
-the vector of unique event times. -
n.event
- the number of events at each of the unique event times. -
convergence
-an indicator, 1 if converge and 0 otherwise. -
history
-an array containing records of estimates and other information on each iterations.
Note
This function is important especially for simulation studies as it reduced checking time. Parameters of Bivariate correlated lognormal frailty model is based on the penalized partial likelihood approach by Rippatti and Palmgren (2000).
References
Rippatti, S. and Palmgren, J (2000). Estimation of multivariate frailty models using penalized partial likelihood. Biometrics, 56: 1016-1022.
See Also
Examples
set.seed(18)
simdata<-simbcfrailph(psize=100, cenr= c(0.2),beta=c(1,-0.7,0.5),frailty=c("lognormal"),
frailpar=c(0.5,-0.25),bhaz=c("exponential"),
bhazpar=list(scale = c(0.1)),covartype= c("N","N","B"),
covarpar=list(fargs=c(0,0,1),sargs=c(1,1,0.5)),comncovar=2)
Y<-simdata$Y;X<-simdata$X
bcspfit<-fitbccv.lognsp(X=X,Y=Y,initfrailp=NULL)
bcspfit$coef
bcspfit$frailpar