coxphFn {ICSKAT}R Documentation

coxphFn

Description

Function to be applied over gMat to get p-values from coxPH().

Usage

coxphFn(x, xMat, midTime, midEvent, p)

Arguments

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.

Value

A scalar p-value for testing the effect of the genotype in survreg() Weibull model.


[Package ICSKAT version 0.2.0 Index]