randomized_rounding: Randomly round the initialized coefficients before coordinate...

View source: R/utils.R

randomized_roundingR Documentation

Randomly round the initialized coefficients before coordinate descent

Description

Round each LR coefficient based on its decimal value. The decimal is the probability of rounding the coefficient up to the next integer

Usage

randomized_rounding(beta)

Arguments

beta

Numeric vector or logistic regression coefficients initialized before cyclical coordinate descent in risk_mod(). The first element is the intercept and is not modified.

Value

A numeric vector with randomized rounding (apart from the first element).


riskscores documentation built on June 8, 2025, 10:27 a.m.