| p.combos | R Documentation |
Creates a matrix representing all possible combinations of n.pair variables.
Each row corresponds to a unique combination, and each column represents a variable
where 1 indicates inclusion and conj indicates exclusion.
p.combos(n.pair, conj = 0)
n.pair |
Integer. Number of predictors in the combination. |
conj |
Numeric. Value denoting absence of a variable in a combination (default is 0). |
This is an internal function called by prime.imp and is not intended for independent use.
A matrix with 2^n.pair rows and n.pair columns, where each row is a unique combination of 1s and conj values.
Bethany Wolf wolfb@musc.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.