getCoefficients: Get Beta Coefficients from fit

Description Usage Arguments Value Author(s)

Description

Function to conveniently get beta coefficients from the BR model in the form of a table, showing the concept_id and, if available, name of the drug.

Usage

1
2
3
4
getCoefficients(fit, con = NULL, names_table = "concept",
  id_var = !!(br_symbol$concept_id),
  name_var = !!(br_symbol$concept_name),
  sort_by = desc(abs(!!(br_symbol$Beta))), keep_zeros = F)

Arguments

fit

the fit obtained from [fitBaselineRegularization].

con

[DBI] connection for 'names_table'.

names_table

a table or the name of a database table (if con is provided) that matches the 'concept_id' of the drugs to more readable names.

id_var

(NSE) the column in 'names_table' that corresponds to drug 'concept_id'.

name_var

(NSE) the column in 'names_table' that corresponds to drug name.

sort_by

(NSE) the value by which to sort the beta coefficients.

keep_zeros

whether to keep exact zeros in result.

Value

Table sorted as specified with columns Beta, concept_id, and (if possible) "Drug Name".

Author(s)

Yuriy Sverchkov


sverchkov/BaselineRegularization documentation built on May 9, 2019, 1:26 p.m.