Skip to contents

This function creates a null dataset by randomly shuffling the genotype data while maintaining the original gene expression data.

Usage

gene_data_null1(data_h1)

Arguments

data_h1

A dataset generated by the gene_data function

Value

A modified dataset with randomly shuffled genotypes

Examples

# Generate original data
data_h1 <- gene_data(n = 1000, p = 60, A_snp_cis, A_cis_trans, A_trans)
#> Error: object 'A_snp_cis' not found

# Generate null data by shuffling genotypes
data_null <- gene_data_null1(data_h1)
#> Error: object 'data_h1' not found