getbeta {bossR}R Documentation

Get regression coefficient

Description

Computes the regression coefficient of certain regression based on certain cutoff.

Usage

getbeta(data, point, type = 2)

Arguments

data

A data frame which contains 3 columns for cox regression : survival time, censor status, Biomarker values. 2 columns for linear regression : Y, X.

point

A number to cut biomarker or X.

type

A number; if =1, will perform linear regression; if =2(default) will perform cox regression.

Value

An object with 3 class: Coefficient beta, number of samples of which the biomarker is greater than the point, standard error of coefficient estimation.


[Package bossR version 1.0.4 Index]