simMlogitRes: Generate simulated residuals for a latent variable for mlogit

View source: R/decomposition.R

simMlogitResR Documentation

Generate simulated residuals for a latent variable for mlogit

Description

Based on Wolff (2012), this will generate simulated residuals from a mlogit model such that the generated residual plus the linear prediction corresponds to the observed outcome

Usage

simMlogitRes(m, df, outcome = "y")

Arguments

m

a multinom regression model from the nnet package

df

the data used to run the probit regression

outcome

the name of the outcome variable

Value

A matrix of simulated residuals, one column for each possible outcome


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