interactions: Tidy summary of interactions

Description Usage Arguments Value Examples

View source: R/phenopath.R

Description

Computes a tidy data frame of the interaction effects, pathway scores, and significance for each gene and covariate interaction.

Usage

1
interactions(phenopath_fit, n = 3)

Arguments

phenopath_fit

An object returned by a call to phenopath

n

The number of standard deviations away from 0 the posterior of the interaction effect sizes should be to be designated as significant

Value

A data frame with the following columns:

Examples

1
2
3
sim <- simulate_phenopath() 
fit <- phenopath(sim$y, sim$x, elbo_tol = 1e-2)
interactions(fit)

phenopath documentation built on Nov. 8, 2020, 6:53 p.m.