create_groups_leg: Random Grouping of Predictors

Description Usage Arguments Value

View source: R/sim_helpers.R

Description

A function to create a list of random variables clustered based on a predefined cluster size. Currently, cluster sizes are based on pathway size curated from KEGG database and stored as vector of integers (outlier excluded cluster_size <- cluster_size[-1]).

Usage

1
2
3
4
5
6
7
create_groups_leg(
  npred = 1000,
  nassoc = 10,
  nassoc_percent = 10,
  overlap = FALSE,
  overlap_size = 10
)

Arguments

npred

p, number of prediction variables.

nassoc

p_t, number of variables with true effect size = 0.

nassoc_percent

an integer from 0 to 100, indicating percentage of variables in a cluster with true effect size > 0.

overlap

boolean, default: FALSE. It determines if the clusters should be overlapping.

overlap_size

an integer, default: 10. It determines the percentage of variables to overlap across clusters.

Value

A list of


bips-hb/rgp documentation built on Feb. 3, 2021, 11:31 a.m.