View source: R/rout_outlier_test.R
rout_outlier_test | R Documentation |
Perform ROUT outlier testing on rout.fitter
object.
rout_outlier_test(fit, Q = 0.01)
fit |
A ‘rout.fitter’ object from the |
Q |
Test size for ROUT outlier detection. |
rout_outlier_test
() is typically called from rout_fitter
(), but may also be called directly by the user.
outlier = logical vector. TRUE indicates observation is an outlier via hypothesis testing with unadjust p-values.
outlier.adj = logical vector. TRUE indicates observation is an outlier via hypothesis testing with FDR-adjust p-values.
attr(object, "Q") = test size for outlier detection
Steven Novick
rout_fitter
set.seed(123L)
x = rep( c(0, 2^(-4:4)), each=4 )
theta = c(0, 100, log(.5), 2)
y = hill_model(theta, x) + rnorm( length(x), sd=2 )
ii = sample( 1:length(y), 2 )
y[ii] = hill_model(theta, x[ii]) + 5.5*2 + rnorm( length(ii), sd=2 )
fit = rout_fitter(c( theta, log(2) ), hill_model, x=x, y=y, Q=0.01)
rout_outlier_test(fit, Q=0.001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.