Skip to contents

This function performs quality control on the processed summary statistics using the specified method.

Usage

summary_stats_qc(
  sumstats,
  LD_data,
  n = NULL,
  var_y = NULL,
  method = c("dentist", "slalom")
)

Arguments

sumstats

A data frame containing the processed summary statistics.

LD_data

A list containing the combined LD variants data generated by load_LD_matrix.

method

The quality control method to use. Options are "dentist" or "slalom" (default: "dentist").

Value

A list containing the quality-controlled summary statistics and updated LD matrix. - sumstats_qc: The quality-controlled summary statistics data frame. - LD_mat_qc: The updated LD matrix after quality control.

Details

This function applies the specified quality control method to the processed summary statistics.

The available quality control methods are: - "dentist": Applies the DENTIST quality control procedure (Chen et al 2021). - "slalom": Applies the SLALOM quality control procedure.

The function returns the quality-controlled summary statistics along with the updated LD matrix.

Examples

# Perform DENTIST quality control
qc_results <- summary_stats_qc(sumstats, LD_data, method = "dentist")
#> Error: object 'LD_data' not found