gen_decomposed_results_probit: Given a properly expressed probit regression, decompose the...

View source: R/decomposition.R

gen_decomposed_results_probitR Documentation

Given a properly expressed probit regression, decompose the results into an explained and unexplained parts.

Description

Given a properly expressed probit regression, decompose the results into an explained and unexplained parts.

Usage

gen_decomposed_results_probit(
  fitted.mdl,
  list_of_IVs,
  list_of_grouping_vars,
  values_of_grouping_vars
)

Arguments

fitted.mdl

A probit regression object

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.

Value

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.


telliott27-research/KOBdecomp documentation built on March 19, 2022, 7:27 a.m.