allsubsets {proptest}R Documentation

All Subsets

Description

The function generates all subsets of the set {1,...,n}.

Usage

allsubsets(n)

Arguments

n the number of elements of the set whose subsets are to be returned.

Value

Returns a 2^n by n matrix of logical values. Each row corresponds to one subset.

Note

This functions is used in the all subsets variant of the data-driven smooth tests of the proportional hazards assumption, see smoothproptest.

Author(s)

David Kraus, http://www.davidkraus.net/

Examples

allsubsets(4)

[Package proptest version 0.1-0 Index]