Description Usage Arguments Value Author(s) See Also Examples
Outliers are replaced in a CausataData object, and the limits are stored so that they can be re-applied when scoring.
1 2 3 | ## S3 method for class 'CausataData'
ReplaceOutliers(this, variableName,
lowerLimit=NULL, upperLimit=NULL, ...)
|
this |
A |
variableName |
The name of the variable within the causataData object that will have outliers replaced. |
lowerLimit |
See |
upperLimit |
See |
... |
Extra unused arguments. |
Returns a CausataData
object.
Justin Hemann <support@causata.com>
CausataData
, CausataVariable
, ReplaceOutliers
.
1 2 3 4 5 6 7 8 | df <- data.frame(variable1__All.Past=c(1,2,3,4,1000))
# create CausataData object
causataData <- CausataData(df, rep(0,nrow(df)))
# max is 1000 before outliers are replaced
max(causataData$df$variable1__All.Past)
causataData <- ReplaceOutliers(causataData, 'variable1__All.Past', upperLimit=4)
# now max is 4 after outliers are replaced
max(causataData$df$variable1__All.Past)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.