interactions {phenopath}R Documentation

Tidy summary of interactions

Description

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

Usage

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

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

[Package phenopath version 1.6.7 Index]