survregFn: survregFn

Description Usage Arguments Value

View source: R/singleSNPalt.R

Description

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

Usage

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


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