Computes edges selection frequency after resampling procedure
freq_selec(Pmat, Pt)
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 |
p x p matrix of edges selection frequency
n=30 p=10 S=5 Y=data_from_scratch("tree",p=p)$data resample_prob=ResampleEMtree(Y, S=S,cores = 1)$Pmat#> Computing 5 probability matrices with 1 core(s)... #> Convergence took 0.22 secs and 25 iterations. #> Convergence took 0.12 secs and 11 iterations. #> Convergence took 0.19 secs and 26 iterations. #> Convergence took 0.15 secs and 12 iterations. #> Convergence took 0.06 secs and 5 iterations.0.78 secs#> num [1:10, 1:10] 0 0.2 1 0 1 0 0.2 0 0.2 0 ...