Function to be applied over gMat to get p-values from coxPH().
coxphFn(x, xMat, midTime, midEvent, p)A scalar p-value for testing the effect of the genotype in survreg() Weibull model.
n*1 genotype vector.
n*p matrix of non-genotype covariates.
n*1 vector of event times imputed to be right-censored times using the midpoint imputation method.
n*1 vector event indicators (0 for censoring, 1 for event) after times have been transformed to right-censored observations.
scalar, number of columns in xMat.