simulate_chisq: Simulate a Chi-squared Statistic from a Distribution with a...

Description Usage Arguments Details Value Author(s)

Description

Simulates a value from a chi-squared distribution with a specified correlation structure.

Usage

1
simulate_chisq(corr_matrix, num_sims)

Arguments

corr_matrix

A square matrix of correlations.

num_sims

An integer value for the number of simulations to be performed.

Details

This function simulates a value from a chi-squared distribution with a specified correlation structure and degrees of freedom corresponding to the number of rows in the correlation matrix.

Value

A numeric value corresponding to a chi-squared statistic simulated from a chi-squared-like distribution with specified correlation structure and degrees of freedom corresponding to the number of rows in the correlation matrix.

Author(s)

Caitlin McHugh mchughc@uw.edu



Search within the cpvSNP package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.