out matrix with columns corresponding to p-values.
seed random seed
bad unused.
srreg parametric lifetime regression
Arguments
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.
Details
This function is intended to verify the operating characteristics of the approximate conditional inferential approach of kz19;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.