Description Usage Arguments Value Author(s) References See Also Examples
Exclude outliers with a standardized residual at a distance greater than 2.5 standard deviations from 0. Note that this function cannot be used with generalized linear mixed-effects models (glmer
s).
1 |
model |
A |
data |
The data frame on which the |
trim |
Threshold at which residuals will be removed. Defaults to 2.5 (standard deviations above and below the residuals mean). |
The function returns the following objects:
data |
The data with outliers removed. |
data0 |
The original data prior to removing the outliers. |
n.removed |
The number of data points removed. |
percent.removed |
The percentage of removed data points. |
Antoine Tremblay, Statistics Canada, trea26@gmail.com, with contrbutions from Andy Flies, Michigan State University.
Baayen, R.H. (2008). Analyzing Linguistic Data. A Practical Introduction to Statistics Using R. Cambridge, UK: Cambridge University Press.
Newman, A.J., Tremblay, A., Nichols, E.S., Neville, H.J., and Ullman, M.T. (submitted). The Influence of Language Proficiency on Lexical-Semantic Processing in Native and Late Learners of English: ERP evidence. Submitted to the Journal of Cognitive Neuroscience.
Tremblay, A. and Tucker B. V. (submitted). What can the production of four-word sequences tell us about the mental lexicon? Submitted to The Mental Lexicon.
1 | # see example in LMERConvenienceFunctions help page.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.