weights: Extract model weights

Description Usage Arguments Value Examples

Description

weights is a generic function which extracts fitting weights from objects returned by modeling functions. NOTE: This man page is for the weights S4 generic function defined in the randRotation package.

Usage

1
2
3
4
5
## S4 method for signature 'initRandrot'
weights(object, ...)

## S4 method for signature 'initBatchRandrot'
weights(object, ...)

Arguments

object

An object of class initRandrot-class, initRandrotW-class or initBatchRandrot-class.

...

Kept for compatibility with the default method, see ?stats::weights. For objects defined in package randRotation, this argument is currently not needed.

Value

Weights extracted from the object object. NULL if no weights were specified. See ?stats::weights for the value returned by the default method.

Examples

1
2
3
weights
showMethods("weights")
selectMethod("weights", "ANY")  # the default method

randRotation documentation built on April 14, 2021, 6:01 p.m.