Skip to contents

Checks the validity of the z and z_var input arguments that is used within the ctar package.

Usage

check_z(z, z_var = NULL, two_traits = FALSE)

Arguments

z

list of numeric vectors. Contains the z-scores from each GWAS.

z_var

numeric vector. Contains the variances of each element of z.

two_traits

logical (default: FALSE). Is the call for two traits?

Value

`NULL`, invisibly. The function is called for its side effects.

See also

Other check_functions_from_ctar: check_cores(), check_p()

Examples

z <- list(c(1, 1.1), c(1, 1.3))
z_var <- c(0.95, 0.97)
check_z(z, z_var, two_traits = TRUE)