Learn R Programming

cg (version 0.9.0)

downweightedTable: Create a table of downweighted observations from a Resistant & Robust fit.

Description

Create a table of downweighted observations in a resistant & robust fit with the cg package.

Usage

downweightedTable(fit, cutoffwt, display="print", ...)

Arguments

fit
An object created by calling a fit method from the cg package. The only class of object currently valid is cgOneFactorDownwe
cutoffwt
It has no default and must be specified as a numeric between 0 and 1 exclusive. It is a threshold on which observations to identify. All observations that exceed this specified value will be identified. For example, a cutoffwt=0.90
display
One of three valid values: [object Object],[object Object],[object Object]
...
Additional arguments, depending on the specific method written for the object. See the method-specific documentation for additional details.

Value

  • A method-specific downweightedTable object is returned. See the specific methods for discussion of return values.

concept

  • weights
  • resistance
  • robust

References

Venables, W. N. and Ripley, B. D. (2002), Modern Applied Statistics with S. Fourth edition. Springer.

See Also

downweightedTable.cgOneFactorFit, MASS::rlm

Examples

Run this code
data(canine)
canine.data <- prepareCGOneFactorData(canine, format="groupcolumns",
                                      analysisname="Canine",
                                      endptname="Prostate Volume",
                                      endptunits=expression(plain(cm)^3),
                                      digits=1, logscale=TRUE, refgrp="CC")
canine.fit <- fit(canine.data)

canine.dwtable <- downweightedTable(canine.fit, cutoff=0.95)

downweightedTable(canine.fit, cutoff=0.75) ## No observation
                                           ## downweighted at least 25\%

Run the code above in your browser using DataLab