Description Usage Arguments Value Author(s)
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.
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)
|
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. |
Table sorted as specified with columns Beta, concept_id, and (if possible) "Drug Name".
Yuriy Sverchkov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.