View source: R/decomposition.R
simMlogitRes | R Documentation |
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
simMlogitRes(m, df, outcome = "y")
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 |
A matrix of simulated residuals, one column for each possible outcome
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.