signal_var_proportion: Signal variable proportion

Description Usage Arguments Value

View source: R/sbfc.R

Description

For each variable, computes the proportion of the samples in which this variable is in the signal group (Group 1). Plots the top nvars variables in decreasing order of signal proportion.

Usage

1
2
3
4
5
6
7
8
signal_var_proportion(
  sbfc_result,
  nvars = 10,
  samples = F,
  labels = paste0("X", 1:ncol(sbfc_result$parents)),
  label_size = 1,
  rotate_labels = F
)

Arguments

sbfc_result

An object of class sbfc.

nvars

Number of top signal variables to include in the plot (default=10).

samples

Calculate signal variable proportion based on sampled MCMC graphs after burn-in and thinning, rather than graphs from all iterations (default=FALSE).

labels

A vector of node labels (default=c("X1","X2",...)).

label_size

Size of variable labels on the X-axis (default=1).

rotate_labels

Rotate x-axis labels by 90 degrees to make them vertical (default=FALSE)

Value

Signal proportion for the top nvars variables in decreasing order.


sbfc documentation built on Jan. 16, 2022, 1:06 a.m.