Man pages for MRCIEU/TwoSampleMR
Two Sample MR Functions and Interface to MR Base Database

add_metadataAdd meta data to extracted data
add_rsqEstimate r-square of each association
allele_frequencyEstimate allele frequency from SNP
available_outcomesGet list of studies with available GWAS summary statistics...
cleanup_outcome_dataAvoid issues in MR by finding impossible vals and setting to...
clump_dataPerform LD clumping on SNP data
combine_all_mrresultsCombine all mr results
combine_dataCombine data
contingencyObtain 2x2 contingency table from marginal parameters and...
convert_outcome_to_exposureConvert outcome data to exposure data
create_labelCreate fixed width label
dat_to_MRInputConvert TwoSampleMR format to MendelianRandomization format
dat_to_RadialMRConvert dat to RadialMR format
default_parametersList of parameters for use with MR functions
directionality_testPerform MR Steiger test of directionality
effective_nEstimate the effective sample size in a case control study
enrichmentPerform enrichment analysis
enrichment_method_listGet list of available p-value enrichment methods
estimate_trait_sdEstimate trait SD by obtaining beta estimates from z-scores...
extract_instrumentsFind instruments for use in MR from the MR Base database
extract_outcome_dataSupply the output from 'read_exposure_data()' and all the...
fishers_combined_testFisher's combined test
forest_plotForest plot for multiple exposures and multiple outcomes
forest_plot_1_to_many1-to-many forest plot
forest_plot_basicA basic forest plot
forest_plot_basic2A basic forest plot
format_1_to_manyFormat MR results for a 1-to-many forest plot
format_aries_mqtlGet data from methylation QTL results
format_dFormat the returned table from the MySQL database
format_dataRead exposure or outcome data
format_gtex_eqtlGet data from eQTL catalog into correct format
format_gwas_catalogGet data selected from GWAS catalog into correct format
format_metab_qtlsGet data from metabolomic QTL results
format_mr_resultsFormat MR results for forest plot
format_proteomic_qtlsGet data from proteomic QTL results
generate_odds_ratiosGenerate odds ratios
get_p_from_r2nCalculate p-value from R-squared and sample size
get_population_allele_frequencyEstimate the allele frequency in population from case/control...
get_r_from_bsenEstimate R-squared from beta, standard error and sample size
get_r_from_lorEstimate proportion of variance of liability explained by SNP...
get_r_from_pnCalculate variance explained from p-values and sample size
get_seGet SE from effect size and p-value
harmonise_dataHarmonise the alleles and effects between the exposure and...
harmonise_ld_datHarmonise LD matrix against summary data
IsqI-squared calculation
knit_reportKnit report using working environment
ld_matrixGet LD matrix for list of SNPs
ldsc_h2Univariate LDSC
ldsc_h2_internalUnivariate LDSC
ldsc_rgBivariate LDSC
ldsc_rg_internalBivariate LDSC
make_datConvenient function to create a harmonised dataset
mrPerform all Mendelian randomization tests
mr_density_plotDensity plot
mr_egger_regressionEgger's regression for Mendelian randomization
mr_egger_regression_bootstrapRun bootstrap to generate standard errors for MR
mr_forest_plotForest plot
mr_forest_plot_groupedGrouped forest plot
mr_funnel_plotFunnel plot
mr_heterogeneityGet heterogeneity statistics
mr_ivwInverse variance weighted regression
mr_ivw_feInverse variance weighted regression (fixed effects)
mr_ivw_mreInverse variance weighted regression (multiplicative random...
mr_ivw_radialRadial IVW analysis
mr_leaveoneoutLeave one out sensitivity analysis
mr_leaveoneout_plotPlot results from leaveoneout analysis
mr_medianMR median estimators
mr_meta_fixedPerform 2 sample IV using fixed effects meta analysis and...
mr_meta_fixed_simplePerform 2 sample IV using simple standard error
mr_meta_randomPerform 2 sample IV using random effects meta analysis and...
mr_method_listGet list of available MR methods
mr_modeMR mode estimators
mr_moeMixture of experts
mr_penalised_weighted_medianPenalised weighted median MR
mr_pleiotropy_testTest for horizontal pleiotropy in MR analysis
mr_rapsRobust adjusted profile score
mr_reportGenerate MR report
mr_ruckerMR Rucker framework
mr_rucker_bootstrapRun rucker with bootstrap estimates
mr_rucker_cooksdistanceMR Rucker with outliers automatically detected and removed
mr_rucker_jackknifeRun rucker with jackknife estimates
mr_scatter_plotCreate scatter plot with lines showing the causal estimate...
mr_signMR sign test
mr_simple_medianSimple median method
mr_simple_modeMR simple mode estimator
mr_simple_mode_nomeMR simple mode estimator (NOME)
mr_singlesnpPerform 2 sample MR on each SNP individually
mr_steigerMR Steiger test of directionality
mr_steiger2MR Steiger test of directionality
mr_two_sample_mlMaximum likelihood MR method
mr_uwrUnweighted regression
mr_wald_ratioPerform 2 sample IV using Wald ratio.
mr_weighted_medianWeighted median method
mr_weighted_modeMR weighted mode estimator
mr_weighted_mode_nomeMR weighted mode estimator (NOME)
mr_wrapperPerform full set of MR analyses
mv_basicPerform basic multivariable MR
mv_extract_exposuresExtract exposure variables for multivariable MR
mv_extract_exposures_localAttempt to perform MVMR using local data
mv_harmonise_dataHarmonise exposure and outcome for multivariable MR
mv_ivwPerform IVW multivariable MR
mv_lasso_feature_selectionApply LASSO feature selection to mvdat object
mv_multiplePerform IVW multivariable MR
mv_residualPerform basic multivariable MR
mv_subsetPerform multivariable MR on subset of features
pipePipe operator
power_prunePower prune
read_exposure_dataRead exposure data
read_outcome_dataRead outcome data
run_mrmixPerform MRMix analysis on harmonised dat object
run_mr_pressoWrapper for MR-PRESSO
simple_capSimple attempt at correcting string case
size.pruneSize prune
sort_1_to_manySort results for 1-to-many forest plot
split_exposureSplit exposure column
split_outcomeSplit outcome column
standardise_unitsTry to standardise continuous traits to be in standard...
steiger_filteringSteiger filtering function
steiger_sensitivityEvaluate the Steiger test's sensitivity to measurement error
subset_on_methodSubset MR-results on method
trimTrim function to remove leading and trailing blank spaces
TwoSampleMR-packageTwoSampleMR: Two Sample MR Functions and Interface to MR Base...
weighted_medianWeighted median method
weighted_median_bootstrapCalculate standard errors for weighted median method using...
MRCIEU/TwoSampleMR documentation built on April 22, 2024, 8:42 p.m.