getbeta | R Documentation |
Computes the regression coefficient of certain regression based on certain cutoff.
getbeta(data, point, type = 2)
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. |
An object with 3 class: Coefficient beta, number of samples of which the biomarker is greater than the point, standard error of coefficient estimation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.