Description Usage Arguments Value Author(s) See Also Examples
View source: R/perSubjectTrim.fnc.R
For each subject, removes data points that are, e.g., 2.5 standard deviations above or below the subject mean.
1 | perSubjectTrim.fnc(data, response, subject, trim = 2.5)
|
data |
The data frame containing the data to be trimmed. |
response |
The quoted name of the column containing the to-be-trimmed data. |
subject |
The quoted name of the column contain subject identifiers. |
trim |
Threshold at which data points will be removed. Defaults to 2.5 (standard deviations above and below each subject's 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.