acc: Unique combinations of variables

Description Usage Arguments Details

View source: R/02_helpers.R

Description

Function to get all possible combinations for a set of covariates.

Usage

1
acc(k)

Arguments

k

Number of covariates (or covariate groups).

Details

This function takes a number (k) and then outputs a matrix with every row depicting one unique combination of covariates. This function is used for mfit, where every possible combination of covariates as explanatory variables is computed and then used for fitting all possible models. This function is then further used for creating model names.


Stan125/ghp documentation built on Feb. 1, 2020, 1:21 p.m.