significant_interactions: Significance testing for interaction features

Description Usage Arguments Value Examples

View source: R/phenopath.R

Description

Given the results of clvm, decide which features show significant iteractions between the latent trajectory and covariates. Significant features are designated as those where the variational mean of the interaction coefficient falls outside the n σ interval of 0.

Usage

1
significant_interactions(phenopath_fit, n = 3)

Arguments

phenopath_fit

The results of a call to clvm

n

The number of standard deviations away from 0 the posterior estimate of beta should be to be designated significant.

Value

A logical vector describing whether each feature passes the significance test.

Examples

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

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