selection_bias_inner: selection_bias_inner

View source: R/selection_bias_inner.R

selection_bias_innerR Documentation

selection_bias_inner

Description

An function to illustrate the risk of selection bias in conventional modelling approaches by simulating a dataset with no information and conducting conventional modelling with prefiltration.

Arguments

nrows

The number of rows to simulate.

ncols

The number of columns to simulate.

p_thresh

The p-value threshold to use in univariate pre-filtration.

Value

A list including a dataframe of results, a dataframe of the median number of variables selected and a plot illustrating false positive selection.


stabiliser documentation built on May 31, 2023, 9:10 p.m.