Man pages for explodecomputer/simulateGP
Functions for Simulating Genotype-Phenotype Relationships

add_uAdd confounder variables and their instruments
allele_frequencyEstimate allele frequency from SNP
arbitrary_mapCreate an arbitrary map
ascertain_samplesAscertain some proportion of cases and controls from binary...
choose_effectsGet vector of effects that explain some amount of variance
contingencyObtain 2x2 contingency table from marginal parameters and...
correlated_binomialSimulate two correlated binomial variables
create_systemWrapper for simulation pipeline
estimate_system_effectsEstimate the effects of all SNPs on all phenotypes
expected_mseCalculate expected MSE
expected_seExpected se given beta, af, n and vy
expected_ssxCalculate expected SSX
fast_assocGet summary statistics in simple linear regression
generate_gwas_paramsGenerate SNP effects given MAF, h2 and selection
generate_gwas_ssModify SNP effects to account for LD
generate_gwas_ss_1Create a GWAS summary dataset
generate_ldobjGenerate LD matrix objects from reference panel
get_effsGet effs for two traits and make dat format
get_ldGet LD matrix for a specified region from bfile reference...
get_population_allele_frequencyEstimate the allele frequency in population from case/control...
get_regions_from_ldobjdirDetermine regions from LD file
gwasPerform association of many SNPs against phenotype
gx_to_gpTranslate risk from liability to probability scale
hap_freqsEstimate haplotype frequencies for two loci
init_parametersChoose initial parameters for direct effects on X and Y
ldetectData frame of independent LD regions
lor_to_rsqEstimate proportion of variance of liability explained by SNP...
make_genoCreate genotype matrix
make_mvdatTake several exposures and one outcome and make the data...
make_phenSimulate variable based on the influences of other variables
merge_exp_outOrganise outputs from 'gwas' into harmonised dat format
pipePipe operator
range01Scale variable to have range between 0 and 1
read_ldobjdirRead in LD objects into list
recode_datRecode data to make every effect on x positive
recode_dat_interceptIntercept recoding to have every effect on x positive
recode_dat_simpleSimple recoding to have every effect on x positive
risk_cross_plotPlot liability vs probability disease risk
risk_simulationMake simulation to compare disease and liability scales
sample_betaSample beta values given standard errors
sample_system_effectsSample the actual effects based on initial parameters
simulate_genoSimulate genotypes from haplotypes
simulateGP-packagesimulateGP: Functions for Simulating Genotype-Phenotype...
simulate_haplotypesSimulate haplotypes of two loci
simulate_populationSimulate individual level data from initial parameters
stuffGeneral funcs
summary_setWrapper for generating a summary set
test_ldobjCreate test LD object
test_systemApply MR tests to system
y_to_binaryConvert continuous trait to binary
explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.