Skip to contents

An object of class probability, calculated by the Pr or tailPr functions, holds the probabilities for all possible combinations of values of a set of joint variates Y conditional on a set of joint variates X. In some cases one may wish to exclude some of the values of the Y or X variates. For instance Y in the probability-class object could include the variate "age" with values from 18 to 100, and one may want to retain the values from 60 to 80.

Usage

# S3 method for class 'probability'
subset(x, subset)

Arguments

x

object of class "probability", obtained with Pr or tailPr.

subset

named list or named vector: variates to subset, given as list names, and corresponding values to subset.

Value

A list of class probability, identical to the original object x except for a reduced range of values in some if its variates.