get.score: LASSO Score Constructor

Description Usage Arguments Value Examples

View source: R/elastic-net.R

Description

This function uses the LASSO Model retained coefficients to recreate the linear predictor. This predictor is then adjusted and regressed against the outcome. This predictor is only based on the protein values, thus adjustment variables must be included.

Usage

1
get.score(data, coefs, adjust, time, outc)

Arguments

data

The tibble containing the merged proteomic and study data.

coefs

The LASSO coefficients output from elastic.net().

adjust

The vector of adjustment variables

time

The character vector of the Survival outcome time to event variable

outc

The character vector of the Survival outcome event indicator

Value

cox

A Cox Model of the LASSO Score

score

The actual double vector constructed score

Examples

1
2
3
4
5
6
7
8
## Not run: 

fifth.score <- get.score(fifth.visit, lasso$coefs, adjust,
                         "fuptime", "hfdiag")



## End(Not run)

pranavdorbala/proteomicsHF documentation built on March 9, 2021, 12:22 a.m.