Description Usage Arguments Details Value References Examples
This function implements the method described by D. Newman, Biometrika, 1939 to identify outliers.
1 | NewmanTest(ref, obs, alpha = 0.01, recursive = FALSE)
|
ref |
a vector giving the reference values to estimate sigma. |
obs |
a vector giving the observed values where potential outlier might exist. |
alpha |
significance level. Only 0.01, 0.05 or 1 is allowed. |
recursive |
whether to recursively identify outliers. Currently not implemented. |
Given measurements from controls (no drug treated), we can compute the sample standard deviation (s). The range of responses from treated samples (w) can be computed for a given dose level. Assuming the controls to have the same variation as the drug treated case, the distribution of ratio statistic q=w/s can be derived and used to calculate if there is outliers in the treated responses as described by D. Newman, Biometrika, 1939.
Note that this function works for a single dose level. When multiple dose levels exist, one need to repeatedly call this function to identify outliers at each dose level or use the flagOutliers() function which is just a wrapper.
indicator a logical vector specifying if the corresponding point is flagged as outlier.
Newman, D. (1939). The distribution of range in samples from a normal population, expressed in terms of an independent estimate of standard deviation. Biometrika, 31(1/2), 20-30.http://www.jstor.org/stable/2334973
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.