View source: R/decomposition.R
gen_decomposed_results_multinom | R Documentation |
Given a properly expressed multinom regression, decompose the results into an explained and unexplained parts.
gen_decomposed_results_multinom( fitted.mdl, df.analysis, list_of_IVs, list_of_grouping_vars, values_of_grouping_vars )
fitted.mdl |
A multinom regression object from the nnet package |
df.analysis |
the dataframe used to run the regression model |
list_of_IVs |
A character vector indicator the predictor variables included in the probit model |
list_of_grouping_vars |
A character vector of grouping variables included in the probit model |
values_of_grouping_vars |
A vector containing all possible values of the grouping variable. |
A list containing two objects. One, the fitted OLS model based on the estimated log-odds continuous variable. Two, a data frame containing the decomposition comparing every possible combination of values for the grouping variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.