simcode | R Documentation |
Operating characteristics for the approximate conditional inferential approach to proportional hazards.
simcode(
dataset,
myformula,
iv,
ctime,
nsamp = 10000,
add = NULL,
nobs = NA,
half = FALSE,
verbose = FALSE
)
dataset |
the data set to use |
myformula |
the formula for the Cox regression |
iv |
name of the variable of interest, as a character string |
ctime |
fixed censoring time |
nsamp |
number of samples. |
add |
preliminary results, if any. |
nobs |
number of observations in target models, if different from that of dataset. |
half |
logical flag triggering a less extreme simulation by dividing the Weibull regression parameters in half. |
verbose |
logical flag triggering intermediate messaging. |
This function is intended to verify the operating characteristics of the approximate conditional inferential approach of \insertCitekz19;textualPHInfiniteEstimates to proportional hazards regression. A Weibull regression model, corresponding to the proportional hazards regression model, is fit to the data, and new data sets are simulated from this model. P-values are calculated for these new data sets, and their empirical distribution is compared to the theoretical uniform distribution.
a list with components
out matrix with columns corresponding to p-values.
seed random seed
bad unused.
srreg parametric lifetime regression
kz19PHInfiniteEstimates
data(breast)
breasttestp<-simcode(breast,Surv(TIME,CENS)~ T+ N+ G+ CD,"T",72,nsamp=100,verbose=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.