bic: Calculate the BIC value for a centain beta

Description Usage Arguments Value

View source: R/func_visual.R

Description

This function calculate the BIC value from beta and the data. Here we use the number of unique beta's as the degree of freedom, and the number of patients of all the data sets as the sample size.

Usage

1
bic(beta, G, T, N, y, cen)

Arguments

beta

an object "param"

G

group indicator vector

T

a vector of cancer feature T

N

a vector of cancer feature N

y

a vector of time to event

cen

censor indicator vector

Value

the BIC value. If beta contains single lambda value, the function returns a value of bic; if the beta contains vector of lambda's, the function returns a vector of bic values.


WangTJ/glidars documentation built on Jan. 20, 2021, 6:32 p.m.