survregFn {ICSKAT} | R Documentation |
survregFn
Description
Function to be applied over gMat to get p-values from survreg().
Usage
survregFn(x, xMat, leftTime2, rightTime2, p)
Arguments
x |
n*1 genotype vector. |
xMat |
n*p matrix of non-genotype covariates. |
leftTime2 |
n*1 vector of left interval times in the format of Surv() interval2 type, i.e NA for left or right censored observations. |
rightTime2 |
n*1 vector of right interval times in the format of Surv() interval2 type, i.e NA for left or right censored observations. |
p |
scalar, number of columns in xMat. |
Value
A scalar p-value for testing the effect of the genotype in survreg() Weibull model.
[Package ICSKAT version 0.2.0 Index]