View source: R/odds_ratio_smlc.R
odds_ratio_mlogit | R Documentation |
Calculate odds ratios from a multinomial logistic hidden genome model
odds_ratio_mlogit(
fit,
type = c("one-vs-rest", "one-vs-ave-baseline"),
scale_1sd = TRUE,
log = TRUE,
predictor_subset = NULL,
baseline_category = NULL,
exclude_itself_from_baseline = TRUE,
...
)
odds_ratio_smlc(
fit,
type = c("one-vs-rest", "one-vs-ave-baseline"),
scale_1sd = TRUE,
log = TRUE,
predictor_subset = NULL,
baseline_category = NULL,
exclude_itself_from_baseline = TRUE,
...
)
fit |
fitted hidden genome mlogit classifier, an output of fit_smlc. |
type |
either "one-vs-rest" (default) or "one-vs-ave-baseline". |
log |
logical. Should the odds ratios be returned in log scale? Defaults to TRUE. |
predictor_subset |
Character vector listing the subset of predictors in
the fitted model |
baseline_category |
Vector of response categories with respect to whose
geometric average probability are the generalized odds calculated.
Ignored if |
exclude_itself_from_baseline |
logical. If |
If type = "one-vs-rest"
, odds ratios are calculated for each predictor,
across all response categories, for one unit (one standard deviation unit,
if scale = TRUE
) increase in each predictor at its mean, while keeping
all other predictors fixed at their respective means.
If type = "one-vs-ave-baseline"
, ratio of generalized odds ratios
relative to the geometric average of baseline category probabilities
are computed. For example if baseline_category = c("A1", .., "Ak")
then the generalized odds of response
cancer site B
is defined as Pr(Site = B)/(\prod_{h=1}^k Pr(Site = Ak))^{1/k}
.
Returns a matrix with odds ratios for predictors (along the rows) across cancer sites (along the columns).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.