updateSmallestLambda: Update the Tables with the Smallest Lambda

Description Usage Arguments Value

View source: R/RcppExports.R

Description

A function used by the batchLASSO function. It updates the column smallest_lambda in the data frame tables with the regression estimates given in beta. The betas are the result of regressing the drugs on event with id event_id using lambda as the shrinkage parameter.

Usage

1
updateSmallestLambda(lowest_lambda, n_drugs, event_id, lambda, beta)

Arguments

lowest_lambda

Vector with the lowest lambdas

n_drugs

The number of drugs

event_id

The ID of the event

lambda

The shrinkage parameter that was used

beta

The regression coefficients

Value

The tables with an updated column smallest_lambda


bips-hb/pvmcomparison documentation built on Dec. 13, 2020, 3:46 a.m.