scorespace {BiDAG} | R Documentation |
Prints 'scorespace' object
Description
Prints 'scorespace' object
Summary of object of class 'scorespace'
Usage
scorespace(
scorepar,
alpha = 0.05,
hardlimit = 14,
plus1 = TRUE,
cpdag = TRUE,
startspace = NULL,
blacklist = NULL,
verbose = FALSE
)
## S3 method for class 'scorespace'
print(x, ...)
## S3 method for class 'scorespace'
summary(object, ...)
Arguments
scorepar |
an object of class |
alpha |
numerical significance value in |
hardlimit |
integer, limit on the size of parent sets in the search space; by default 14 when MAP=TRUE and 20 when MAP=FALSE |
plus1 |
logical, if TRUE (default) the search is performed on the extended search space |
cpdag |
logical, if TRUE the CPDAG returned by the PC algorithm will be used as the search space, if FALSE (default) the full undirected skeleton will be used as the search space |
startspace |
(optional) a square matrix, of dimensions equal to the number of nodes, which defines the search space for the order MCMC in the form of an adjacency matrix. If NULL, the skeleton obtained from the PC-algorithm will be used. If |
blacklist |
(optional) a square matrix, of dimensions equal to the number of nodes, which defines edges to exclude from the search space. If |
verbose |
logical, if TRUE messages about the algorithm's progress will be printed, FALSE by default |
x |
object of class 'scorespace' |
... |
ignored |
object |
object of class 'scorespace' |
Value
Object of class scorespace
, a list of three objects: 'adjacency' matrix representiong the search space, 'blacklist' used to exclude edges from the search space and 'tables' containing score quantities for each node
needed to run MCMC schemes
Author(s)
Polina Suter, Jack Kuipers
References
Friedman N and Koller D (2003). A Bayesian approach to structure discovery in bayesian networks. Machine Learning 50, 95-125.
Examples
#' #find a MAP DAG with search space defined by PC and plus1 neighbourhood
Bostonscore<-scoreparameters("bge",Boston)
Bostonspace<-scorespace(Bostonscore, 0.05, 14)
## Not run:
orderfit<-orderMCMC(Bostonscore, scoretable=Bostonspace)
partitionfit<-orderMCMC(Bostonscore, scoretable=Bostonspace)
## End(Not run)