View source: R/decomposition.R
simulateResiduals | R Documentation |
Based on Wolff (2012), this will generate simulated residuals from a probit model such that the generated residual plus the linear prediction corresponds to the observed outcome (i.e. Y==1:Y*>0; Y==0:Y*<=0)
simulateResiduals(m, df, outcome = "y")
m |
a probit regression model |
df |
the data used to run the probit regression |
outcome |
the name of the outcome variable |
A vector of simulated residuals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.