isSuspicious: Determine which results are suspicious

Description Usage Arguments Details Value See Also Examples

View source: R/report.R

Description

\lifecycle

maturing The GWAS function writes all results, both valid and invalid, to a log file. This function uses heuristics to try to classify rows as suspicious or unsuspicious.

Usage

1
isSuspicious(result, pars = attr(result, "focus"))

Arguments

result

output from loadResults

pars

names of the parameters available in result

Details

OpenMx reports exceptions in the ‘catch1’ column. Any error message in the ‘catch1’ column is suspicious. Any optimizer status code besides ‘OK’ is suspicious. It is suspicious if the focal parameter or its standard error is NA. If ‘signAdj’ was requested and it is NA then suspicion is also aroused.

Value

a vector of logicals for each row of result indicating suspicion (if TRUE)

See Also

Other reporting: loadResults(), plot.gwsemResult(), signifGxE(), signif()

Examples

1
2
3
4
5
6
7
8
tdir <- tempdir()
dir <- system.file("extdata", package = "gwsem")
pheno <- data.frame(anxiety=rnorm(500))
m1 <- buildItem(pheno, 'anxiety')
GWAS(m1, file.path(dir,"example.bgen"),
    file.path(tdir,"out.log"))
r1 <- loadResults(file.path(tdir,"out.log"), "snp_to_anxiety")
r1[isSuspicious(r1, "snp_to_anxiety"),]

gwsem documentation built on Jan. 18, 2022, 1:09 a.m.