getbeta: Get regression coefficient

View source: R/Rboss.R

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


bossR documentation built on May 29, 2024, 6:23 a.m.

Related to getbeta in bossR...