significant_interactions {phenopath} | R Documentation

## Significance testing for interaction features

### 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

    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

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

[Package phenopath version 1.11.0 Index]