fitPC: fitPC

Description Usage Arguments Value

View source: R/fitPC.R

Description

Statbility selection for CPDAG using PC algorithm

Usage

1
fitPC(dat, alpha, stable = FALSE, alpha.array, B, labels, verbose = F)

Arguments

dat

a n x p data matrix where n is the number of samples and p is the number of nodes with colnames as the node names

alpha

a scalar for the tuning parameter for PC algorithm

stable

a logical value. If TRUE, selection probabilities are calculated from subsampling

alpha.array

a vector for the set of alpha values for the stability selection

B

a scalar for the number of subsampling in the stability selection

labels

p x 1 vector for node names

verbose

a logical value for details

Value

fit

pcAlgo object (pcalg package) for CPDAG

pcA

an no. edges x length(alpha.array) x B dimensional array that includes the all edges across all tuning parameters in alpha.array and B subsamples. 1 indicates -> (directed edge from column 1 to column 2 in the rownames object), 2 indicates <- (directed edge from column 2 to column 1 in the rownames object), and 3 indicates - (undirected edge between column 1 and column 2).

pcSel

3 x no.edges x length(alpha.array) list that includes 3 types of no.edges x length(alpha.array) matrices of selection probabilities for each of the directions (->, <-, -).

pcmaxSel

no.edges x 3 matrix for maximum selection probabilities for each of the directions, -> (first column), <- (second column), - (third column)

rownames

no. edges x 2 matrix for pairs of nodes (first node in the first column and second node in the second column) for all possible edges. All the outputs are in the order of the rows of this matrix.


MinJinHa/PRECISE documentation built on May 4, 2019, 1:07 p.m.