Description Usage Arguments Value Author(s) References See Also Examples
Estimate the Cox PH model by weighted partial likelihood. Event weights are calcualted with respect to event probabilities.
1 |
data_list |
The data list which has been transformed from the long format by the uc_data_transform function. |
covariates |
The vector of varaible on the RHS of the Cox model. |
init |
The initial value of covariates vector in the likelihood, length matches the length of covariates. |
BS |
T/F, whether conduct estimation via the Bootstrap method. |
nBS |
Number of BS, only effective if BS=TRUE. |
coefficients |
Estimated vector of coefficients in the model |
var |
Estimated variance of the coefficients |
hr |
Estimated hazard ratios in the model |
z |
Wald test statistics |
pvalue |
Estimated two-sided p-value |
coefficients_bs |
Bootstrapped coefficient estimation |
var_bs |
Bootstrapped variance estimation |
column_name |
Column name |
Yiming Chen, John Lawrence
[1]Cook TD. Adjusting survival analysis for the presence of unadjudicated study events. Controlled clinical trials. 2000;21(3):208-222.
[2]Cook TD, Kosorok MR. Analysis of time-to-event data with incomplete event adjudication. Journal of the american statistical association. 2004;99(468):1140-1152.
[3]Snapinn SM. Survival analysis with uncertain endpoints. Biometrics. 1998;54(1):209-218.
1 2 3 4 5 6 7 8 9 10 11 12 13 | df_x<-data_sim(n=500,0.8,haz_c=0.5/365)
data_intrim<-uc_data_transform(data=df_x,
var_list=c("id_long","trt_long"),
var_list_new=c("id","trt"),
time="time_long",
prob="prob_long")
fit<-Coxwt(data_list=data_intrim,covariates=c("trt"),init=c(1),BS=FALSE)
Coxwt.summ(fit)
##an example if we would like to check the BS variance
fit2<-Coxwt(data_list=data_intrim,covariates=c("trt"),init=c(1),BS=TRUE, nBS = 100)
Coxwt.summ(fit2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.