freq_selec: Computes edges selection frequency after resampling procedure

View source: R/F_inference.R

freq_selecR Documentation

Computes edges selection frequency after resampling procedure

Description

Computes edges selection frequency after resampling procedure

Usage

freq_selec(Pmat, Pt)

Arguments

Pmat

matrix gathering edges probability, with dimensions number of resamples x number of possible edges. Typically the Pmat output of 'ResampleEMtree()'.

Pt

edges probability threshold

Value

p x p matrix of edges selection frequency

Examples

n=30
p=10
S=5
Y=data_from_scratch("tree",p=p)$data
resample_prob=ResampleEMtree(Y, S=S,cores = 1)$Pmat
edges_freq<-freq_selec(resample_prob,Pt=0.3)
str(edges_freq)

Rmomal/EMtree documentation built on Dec. 14, 2024, 8:16 a.m.