Description Usage Arguments Value
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 beta
s are the
result of regressing the drugs on event with id event_id
using
lambda
as the shrinkage parameter.
1 | updateSmallestLambda(lowest_lambda, n_drugs, event_id, lambda, beta)
|
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 |
The tables
with an updated column smallest_lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.