coxphFn: coxphFn

Description Usage Arguments Value

View source: R/singleSNPalt.R

Description

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

Usage

1
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.


ICSKAT documentation built on Nov. 25, 2021, 9:07 a.m.