Generate null data by random shuffling of genotypes
Source:R/simulate_transQTL_null.R
gene_data_null1.RdThis function creates a null dataset by randomly shuffling the genotype data while maintaining the original gene expression data.
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