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